NUnit.Framework.Assert.Inconclusive()

Here are the examples of the csharp api class NUnit.Framework.Assert.Inconclusive() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

31 Examples 7

1. Example

Project: esp-net
Source File: ReactiveTests.cs
View license
[Test]
        public void WhereChainsOnCompletedToSource()
        {
            Assert.Inconclusive();
        }

2. Example

View license
[Test]
                public void ShouldThrowOnExecuteEvent()
                {
                    Assert.Inconclusive();
                    // AssertRethrows(() => _router.ExecuteEvent(_model1.Id, new Event2()));
                }

3. Example

Project: esp-net
Source File: ReactiveTests.cs
View license
[Test]
        public void TakeChainsOnCompletedToSource()
        {
            Assert.Inconclusive();
        }

4. Example

Project: nlight
Source File: IDataReaderTests.cs
View license
public void GetDataTest()
		{
			Assert.Inconclusive("Not implemented.");
		}

5. Example

Project: bindingsrx
Source File: SampleTests.cs
View license
[Test]
        [Category("Failing Tests")]
        public void InconclusiveTest()
        {
            Assert.Inconclusive();
        }

6. Example

Project: nlight
Source File: IDataReaderTests.cs
View license
[Test]
		public void DepthTest()
		{
			Assert.Inconclusive("Not implemented.");
		}

7. Example

Project: nlight
Source File: IDataReaderTests.cs
View license
[Test]
		public void NextResultTest()
		{
			Assert.Inconclusive("Not implemented.");
		}

8. Example

Project: nlight
Source File: IDataReaderTests.cs
View license
[Test]
		public void RecordsAffectedTest()
		{
			Assert.Inconclusive("Not implemented.");
		}

9. Example

View license
[Test, ExpectedException(typeof(InconclusiveException))]
        public void ThrowsInconclusiveException()
        {
            Assert.Inconclusive();
        }

10. Example

Project: unity-tools
Source File: IOTests.cs
View license
[Test]
        public void TestApiTraceSyncronous()
        {
            //TODO: Find a way to test this
            Assert.Inconclusive();
        }

11. Example

Project: unity-tools
Source File: IOTests.cs
View license
[Test]
        public void TestApiConnectSyncronous()
        {
            //TODO: Find a way to test this
            Assert.Inconclusive();
        }

12. Example

View license
private static void CheckElevated()
        {
            if (!LogManager.IsCurrentProcessElevated())
            {
                Assert.Inconclusive("Test process is not running elevated, cannot continue.");
            }
        }

13. Example

Project: Gu.Wpf.DataGrid2D
Source File: SelectedTests.cs
View license
[Test]
        public void Reminder()
        {
            Assert.Inconclusive("Assert cell.IsSelected when supported");
        }

14. Example

Project: UnityBuild
Source File: SampleTests.cs
View license
[Test]
        [Category("Failing Tests")]
        public void InconclusiveTest()
        {
            Assert.Inconclusive();
        }

15. Example

View license
[Test, Ignore]
        [Category("Type System")]
        public void Regress_1459175_2()
        {
            Assert.Inconclusive();
            string code = @"
class A
{
    X : int;
    
    
    constructor A(x : int)
    {
        X = x;        
    }
}
def length : A (pts : A[])
{
    numPts = [Imperative]
    {
        counter = 0;
        for(pt in pts)
        {
            counter = counter + 1;
        }        
        return = counter;
    }
    return = pts;
}
pt1 = A.A( 1 );
pt2 = A.A( 10 );
pts = {pt1, pt2};
numpts = length(pts);
test =numpts[0].X;
test2 =numpts[1].X;
	
";
            ExecutionMirror mirror = thisTest.RunScriptSource(code);
            thisTest.Verify("test", 1, 0);
            thisTest.Verify("test2", 10, 0);
        }

16. Example

View license
[Test]
        public void TemplateService_CanParseTildeInTemplate_UsingHtmlEncoding() {
            Assert.Inconclusive("Add a TagHelper to replace this functionality?");
            using (var service = new TemplateService()) {
                const string template = "<a href=\"~/index.html\">@Model.String</a>";
                const string expected = "<a href=\"/index.html\">Matt</a>";

                var model = new { String = "Matt" };
                string result = service.Parse(template, model, null, null);

                Assert.That(result == expected, "Result does not match expected: " + result);
            }
        }

17. Example

View license
[Test]
        public void TemplateService_CanParseTildeInTemplate_UsingRawEncoding()
        {
            Assert.Inconclusive("Add a TagHelper to replace this functionality?");
            var config = new TemplateServiceConfiguration() {
                EncodedStringFactory = new RawStringFactory()
            };

            using (var service = new TemplateService(config)) {
                const string template = "<a href=\"~/index.html\">@Model.String</a>";
                const string expected = "<a href=\"/index.html\">Matt</a>";

                var model = new { String = "Matt" };
                string result = service.Parse(template, model, null, null);

                Assert.That(result == expected, "Result does not match expected: " + result);
            }
        }

18. Example

Project: Gu.Reactive
Source File: CrudSourceTests.cs
View license
[Test]
        public void ManyAddsOneReset()
        {
            if (!(this.Scheduler is TestScheduler))
            {
                Assert.Inconclusive();
            }

            using (var actual = this.View.SubscribeAll())
            {
                for (var i = 0; i < 10; i++)
                {
                    this.Source.Add(i);
                }

                this.Scheduler.Start();

                CollectionAssert.AreEqual(this.Source, this.View);
                var expected = new EventArgs[]
                                   {
                                       CachedEventArgs.CountPropertyChanged,
                                       CachedEventArgs.IndexerPropertyChanged,
                                       CachedEventArgs.NotifyCollectionReset
                                   };
                CollectionAssert.AreEqual(expected, actual, EventArgsComparer.Default);
            }
        }

19. Example

Project: Gu.Units
Source File: CustomCOnversionTests.cs
View license
[Test]
        public async Task CustomConversion()
        {
            var settings = MockSettings.Create();
            var conversion = new CustomConversion("Fahrenheit", "°F", "(fahrenheit + 459.67)/1.8", "1.8*kelvin - 459.67");
            settings.Kelvins.CustomConversions.Add(conversion);
            Assert.AreEqual("(fahrenheit + 459.67)/1.8", conversion.ToSi);
            Assert.AreEqual("1.8*kelvin - 459.67", conversion.FromSi);
            Assert.AreEqual("1 °F = 255.927777777778 K", await conversion.GetSymbolConversionAsync().ConfigureAwait(false));
            Assert.Inconclusive("Does not roundtrip cleanly");
            ////Assert.AreEqual(true, conversion.CanRoundtripCoreAsync);
        }

20. Example

Project: Gu.Units
Source File: PartConversionsVmTests.cs
View license
[Test]
        public void SetUnitToMetresPerSecond()
        {
            Assert.Inconclusive();
            //// ReSharper disable once HeuristicUnreachableCode
            var settings = MockSettings.Create();
            using (var vm = new PartConversionsVm())
            {
                vm.SetUnit(settings.MetresPerSecond);
                CollectionAssert.AreEqual(new PartConversionsVm[0], vm.Conversions);
            }
        }

21. Example

Project: Gu.Units
Source File: QuantityConversionTests.cs
View license
[Test]
        public void TemperatureConversions()
        {
            var t1 = Temperature.FromKelvin(1.2);
            var t2 = Temperature.FromCelsius(1.2 - 273.15);
            Assert.IsTrue(t1.Equals(t2, Temperature.FromKelvin(1E-6)));
            Assert.Inconclusive("Does not roundtrip cleanly");
        }

22. Example

Project: Gu.Units
Source File: ConversionTests.cs
View license
[Test]
        public async Task CustomConversion()
        {
            var settings = MockSettings.Create();
            var conversion = new CustomConversion("Fahrenheit", "°F", "(fahrenheit + 459.67)/1.8", "1.8*kelvin - 459.67");
            settings.Kelvins.CustomConversions.Add(conversion);
            Assert.AreEqual("(fahrenheit + 459.67)/1.8", conversion.ToSi);
            Assert.AreEqual("1.8*kelvin - 459.67", conversion.FromSi);
            Assert.AreEqual("1 °F = 255.927777777778 K", await conversion.GetSymbolConversionAsync().ConfigureAwait(false));
            Assert.Inconclusive("Does not roundtrip cleanly");
            ////Assert.AreEqual(true, conversion.CanRoundtripCoreAsync);
        }

23. Example

Project: nunit
Source File: AssertInconclusiveTests.cs
View license
[Test]
        public void ThrowsInconclusiveException()
        {
            Assert.That(
                () => Assert.Inconclusive(),
                Throws.TypeOf<InconclusiveException>());
        }

24. Example

Project: nunit
Source File: AdhocTestExecutionTests.cs
View license
static public void TestAssertInconclusive()
            {
                Assert.That(() => Assert.Inconclusive(), Throws.TypeOf<InconclusiveException>());
            }

25. Example

Project: Nustache
Source File: Official_Specs.cs
View license
private static void RunMustacheSpecs(MustacheSpec.MustacheTest test)
        {
            TemplateL/n ..... /n //View Source file for more details /n }

26. Example

Project: ShareFile-NET
Source File: TransferBaseTests.cs
View license
protected IShareFileClient GetShareFileClient()
        {
            try
            {
                using (var fileStream = System.IO.File.OpenRead("TestConfig.json"))
                using (var streamReader = new StreamReader(fileStream))
                {
                    var info = streamReader.ReadToEnd();
                    var userInfo = JsonConvert.DeserializeObject<UserInfo>(info);

                    var sfClient = new ShareFileClient(userInfo.GetBaseUri().ToString());
                    lock (oauthTokenLock)
                    {
                        if (token == null)
                        {
                            var oauthService = new OAuthService(sfClient, userInfo.ClientId, userInfo.ClientSecret);
                            token = oauthService.GetPasswordGrantRequestQuery(userInfo.Email, userInfo.Password, userInfo.Subdomain, userInfo.Domain).Execute();
                        }
                    }

                    sfClient.BaseUri = token.GetUri();
                    sfClient.AddOAuthCredentials(token);
                    return sfClient;
                }
            }
            catch (Exception exception)
            {
                Assert.Inconclusive(string.Format("No UserInfo found in TestConfig.json. Exception: {0}", exception));
                throw;
            }
        }

27. Example

Project: FireSharp
Source File: FiresharpTests.cs
View license
[Test, Category("INTEGRATION")]
        public async void OnChangeGetAsync()
        {
            var expected = new Todo { name = "Execute PUSH4GET1", priority = 2 };
            var changes = 0;
            var observer = _client.OnChangeGetAsync<Todo>("fakepath/OnGetAsync/", (events, arg) =>
            {
                Interlocked.Increment(ref changes);
                Assert.NotNull(arg);
                Assert.AreEqual(expected.name, arg.name);
            });

            await _client.SetAsync("fakepath/OnGetAsync/", expected);

            await Task.Delay(2000);

            await _client.SetAsync("fakepath/OnGetAsync", new Todo { name = "PUSH4GET1", priority = 2 });

            await Task.Delay(2000);

            try
            {
                if (changes == 3)
                {
                    Assert.Inconclusive();
                }

                Assert.AreEqual(2, changes);
            }
            finally
            {
                observer.Result.Cancel();
            }
        }

28. Example

Project: NBi
Source File: QueryParserTest.cs
View license
[Test]
        [TestCase(EngineType.SqlNative)]
        [TestCase(EngineType.OleDb)]
        [TestCase(EngineType.Odbc)]
        public void Parse_DontExecuteEffectivelyQuery(EngineType engineType)
        {
            var sqlCount = @"SELECT COUNT(*) from [HumanResources].[Department]";
            var sql = @"DELETE from [HumanResources].[Department]";

            var countBefore = ExecuteCount(sqlCount);
            if (countBefore == 0) //If nothing was present we cannot assert
                Assert.Inconclusive();

            var cmd = BuildCommand(sql, engineType);
            var qp = new QueryEngineFactory().GetParser(cmd);

            var res = qp.Parse();

            if (!res.IsSuccesful)//If syntax is incorrect we cannot assert
                Assert.Inconclusive();

            var countAfter = ExecuteCount(sqlCount);

            Assert.That(countAfter, Is.EqualTo(countBefore));
        }

29. Example

Project: duality
Source File: PackageManagerTest.cs
View license
private void SetupPackagesForTest(PackageManager packageManager, IEnumerable<MockPackageSpec> /n ..... /n //View Source file for more details /n }

30. Example

Project: Shielded
Source File: SyncSideEffectTests.cs
View license
[Test]
        public void OrderedSideEffects()
        {
            int numRuns = 10000;
            var x = new Shielded<int>();

            var normalFx = new int[numRuns];
            int place = -1;
            ParallelEnumerable.Repeat(0, numRuns)
                .WithExecutionMode(ParallelExecutionMode.ForceParallelism)
                .ForAll(_ => {
                    Shield.InTransaction(() => {
                        int old = x;
                        x.Value = old + 1;
                        Shield.SideEffect(() => {
                            int taken = Interlocked.Increment(ref place);
                            normalFx[taken] = old;
                        });
                    });
                });

            var syncFx = new int[numRuns];
            place = -1;
            ParallelEnumerable.Repeat(0, numRuns)
                .WithExecutionMode(ParallelExecutionMode.ForceParallelism)
                .ForAll(_ => {
                    Shield.InTransaction(() => {
                        int old = x;
                        x.Value = old + 1;
                        Shield.SyncSideEffect(() => {
                            int taken = Interlocked.Increment(ref place);
                            syncFx[taken] = old;
                        });
                    });
                });

            Assert.IsTrue(IsSorted(syncFx));
            if (IsSorted(normalFx))
                Assert.Inconclusive();
        }

31. Example

Project: Manatee.Json
Source File: JsonPatchTestSuite.cs
View license
[TestCaseSource(nameof(TestData))]
		public void Run(string fileName, JsonValue testJson)
		{
			JsonPatchResult result = null;
			try
			{
				var schemaValidation = JsonPatchTest.Schema.Validate(testJson);
				if (!schemaValidation.Valid)
				{
					foreach (var error in schemaValidation.Errors)
					{
						Console.WriteLine(error);
					}
					return;
				}
				var test = _serializer.Deserialize<JsonPatchTest>(testJson);

				result = test.Patch.TryApply(test.Doc);

				Assert.AreNotEqual(test.ExpectsError, result.Success);
				if (test.HasExpectedValue)
					Assert.AreEqual(test.ExpectedValue, result.Patched);
			}
			catch (Exception e)
			{
				Console.WriteLine(fileName);
				Console.WriteLine(testJson.GetIndentedString());
				Console.WriteLine(e.Message);
				Console.WriteLine(e.StackTrace);
				if (result != null)
					Console.WriteLine(result.Error);
				if (testJson.Object.TryGetBoolean("disabled") ?? false)
					Assert.Inconclusive();
				throw;
			}
		}