diff --git a/tests/templates/WatchExtension/InterfaceController.cs b/tests/templates/WatchExtension/InterfaceController.cs index 571c840235e7..694d27b67210 100644 --- a/tests/templates/WatchExtension/InterfaceController.cs +++ b/tests/templates/WatchExtension/InterfaceController.cs @@ -71,6 +71,7 @@ public override void Awake (NSObject context) void LoadTests () { runner = new WatchOSRunner (); +#if !NUNITLITE_NUGET var categoryFilter = new NotFilter (new CategoryExpression ("MobileNotWorking,NotOnMac,NotWorking,ValueAdd,CAS,InetAccess,NotWorkingLinqInterpreter,RequiresBSDSockets,BitcodeNotSupported").Filter); if (!string.IsNullOrEmpty (Environment.GetEnvironmentVariable ("NUNIT_FILTER_START"))) { var firstChar = Environment.GetEnvironmentVariable ("NUNIT_FILTER_START") [0]; @@ -80,6 +81,7 @@ void LoadTests () } else { runner.Filter = categoryFilter; } +#endif runner.Add (GetType ().Assembly); TestLoader.AddTestAssemblies (runner); ThreadPool.QueueUserWorkItem ((v) => @@ -154,6 +156,7 @@ partial void RunTests (NSObject obj) } } +#if !NUNITLITE_NUGET class NameStartsWithFilter : NUnit.Framework.Internal.TestFilter { public char FirstChar; @@ -185,3 +188,4 @@ public override bool Pass (NUnit.Framework.Api.ITest test) return Match (test); } } +#endif