NUnit.Framework.Assert.That(NUnit.Framework.TestDelegate, NUnit.Framework.Constraints.IResolveConstraint)

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

200 Examples 7

1. Example

View license
[Test]
            public void HandlersReturnsExpectedResult()
            {
                Assert.That(_sut.Handlers, Is.Empty);
            }

2. Example

Project: Projac
Source File: TSqlIntNullValueTests.cs
View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

3. Example

View license
[Test]
            public void GetEnumeratorReturnsExpectedInstance()
            {
                Assert.That(_sut, Is.Empty);
            }

4. Example

Project: Projac
Source File: TSqlNCharNullValueTests.cs
View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

5. Example

View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

6. Example

Project: Projac
Source File: TSqlCharNullValueTests.cs
View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

7. Example

Project: Projac
Source File: TSqlBitNullValueTests.cs
View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

8. Example

Project: Projac
Source File: TSqlVarCharNullValueTests.cs
View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

9. Example

View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

10. Example

View license
[Test]
        public void DoesNotEqualNull()
        {
            Assert.That(_sut.Equals(null), Is.False);
        }

11. Example

View license
[Test]
        public void EmptyInstanceBuildReturnsExpectedResult()
        {
            var result = new AnonymousConnectedProjectionBuilder<object>().Build();

            Assert.That(result, Is.Empty);
        }

12. Example

Project: Projac
Source File: TSqlBitNullValueTests.cs
View license
[Test]
        public void DoesEqualItself()
        {
            Assert.That(_sut.Equals(TSqlBitNullValue.Instance), Is.True);
        }

13. Example

View license
[Test]
        public void DoesNotEqualNull()
        {
            Assert.That(_sut.Equals(null), Is.False);
        }

14. Example

Project: Projac
Source File: TSqlBitNullValueTests.cs
View license
[Test]
        public void DoesNotEqualNull()
        {
            Assert.That(_sut.Equals(null), Is.False);
        }

15. Example

View license
[Test]
        public void EmptyInstanceBuildReturnsExpectedResult()
        {
            var result = new AnonymousSqlProjectionBuilder().Build();

            Assert.That(result, Is.Empty);
        }

16. Example

Project: Projac
Source File: TSqlMoneyNullValueTests.cs
View license
[Test]
        public void DoesEqualItself()
        {
            Assert.That(_sut.Equals(TSqlMoneyNullValue.Instance), Is.True);
        }

17. Example

View license
[Test]
        public void DoesEqualItself()
        {
            var self = _sut;
            Assert.That(_sut.Equals(self), Is.True);
        }

18. Example

Project: Projac
Source File: TSqlCharNullValueTests.cs
View license
[Test]
        public void DoesEqualItself()
        {
            var self = _sut;
            Assert.That(_sut.Equals(self), Is.True);
        }

19. Example

Project: Projac
Source File: TSqlDateNullValueTests.cs
View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

20. Example

View license
[Test]
        public void DoesEqualItself()
        {
            var self = _sut;
            Assert.That(_sut.Equals(self), Is.True);
        }

21. Example

View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

22. Example

Project: Projac
Source File: TSqlDateNullValueTests.cs
View license
[Test]
        public void DoesEqualItself()
        {
            var self = _sut;
            Assert.That(_sut.Equals(self), Is.True);
        }

23. Example

View license
[Test]
        public void InitialInstanceBuildReturnsExpectedResult()
        {
            var sut = new AnonymousConnectedProjectionBuilder<object>();

            var result = sut.Build();

            Assert.That(result, Is.Empty);
        }

24. Example

View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

25. Example

Project: Projac
Source File: TSqlBigIntNullValueTests.cs
View license
[Test]
        public void DoesNotEqualNull()
        {
            Assert.That(_sut.Equals(null), Is.False);
        }

26. Example

Project: Projac
Source File: TSqlBinaryNullValueTests.cs
View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

27. Example

View license
[Test]
        public void DoesEqualItself()
        {
            Assert.That(_sut.Equals(TSqlDateTimeNullValue.Instance), Is.True);
        }

28. Example

Project: Projac
Source File: TSqlBinaryNullValueTests.cs
View license
[Test]
        public void DoesEqualItself()
        {
            var self = _sut;
            Assert.That(_sut.Equals(self), Is.True);
        }

29. Example

View license
[Test]
            public void HandlersReturnsExpectedResult()
            {
                Assert.That(_sut.Handlers, Is.Empty);
            }

30. Example

Project: Projac
Source File: TSqlIntNullValueTests.cs
View license
[Test]
        public void DoesNotEqualNull()
        {
            Assert.That(_sut.Equals(null), Is.False);
        }

31. Example

View license
[Test]
        public void DoesNotEqualOtherObjectType()
        {
            Assert.That(_sut.Equals(new object()), Is.False);
        }

32. Example

Project: Projac
Source File: TSqlMoneyNullValueTests.cs
View license
[Test]
        public void DoesNotEqualNull()
        {
            Assert.That(_sut.Equals(null), Is.False);
        }

33. Example

Project: Projac
Source File: TSqlBinaryNullValueTests.cs
View license
[Test]
        public void DoesNotEqualNull()
        {
            Assert.That(_sut.Equals(null), Is.False);
        }

34. Example

View license
[Test]
        public void DoesNotEqualNull()
        {
            Assert.That(_sut.Equals(null), Is.False);
        }

35. Example

View license
[Test]
        public void InitialInstanceBuildReturnsExpectedResult()
        {
            var result = _sut.Build();

            Assert.That(result, Is.Empty);
        }

36. Example

Project: Projac
Source File: TSqlVarCharNullValueTests.cs
View license
[Test]
        public void DoesEqualItself()
        {
            var self = _sut;
            Assert.That(_sut.Equals(self), Is.True);
        }

37. Example

View license
[Test]
        public void DoesEqualItself()
        {
            Assert.That(_sut.Equals(TSqlDateTimeOffsetNullValue.Instance), Is.True);
        }

38. Example

Project: Projac
Source File: TSqlNCharNullValueTests.cs
View license
[Test]
        public void DoesEqualItself()
        {
            var self = _sut;
            Assert.That(_sut.Equals(self), Is.True);
        }

39. Example

View license
[Test]
        public void LessThanMinimumDistinctQuantityMisses() {
            var cart = new[] {
                new ShoppingCartQuantityProduct(1, new ProductStub {Weight = 3.0/16}),
                new ShoppingCartQuantityProduct(2, new ProductStub {Weight = 2.0/16})
            };
            var defaultShippingMethod = ShippingHelpers.BuildUspsShippingMethod(
                minimumQuantity: 3,
                countDistinct: true);
            var shippingMethods = new IShippingMethod[] { defaultShippingMethod };
            var wca = ShippingHelpers.GetUspsWorkContextAccessor("foo", false, false, 3);
            var prices = defaultShippingMethod.ComputePrice(cart, shippingMethods, Country.UnitedStates, "90220", wca);
            Assert.That(prices, Is.Empty);
        }

40. Example

View license
[Test]
        public void BadIntervalMisses() {
            var cart = new[] {
                new ShoppingCartQuantityProduct(1, new ProductStub {Weight = 3.0/16}),
                new ShoppingCartQuantityProduct(3, new ProductStub {Weight = 2.0/16})
            };
            var defaultShippingMethod = ShippingHelpers.BuildUspsShippingMethod(
                minimumQuantity: 3,
                maximumQuantity: 1,
                countDistinct: true);
            var shippingMethods = new IShippingMethod[] { defaultShippingMethod };
            var wca = ShippingHelpers.GetUspsWorkContextAccessor("foo", false, false, 3);
            var prices = defaultShippingMethod.ComputePrice(cart, shippingMethods, Country.UnitedStates, "90220", wca);
            Assert.That(prices, Is.Empty);
        }

41. Example

View license
[Test]
        public void MoreThanMaximumTotalQuantityMisses() {
            var cart = new[] {
                new ShoppingCartQuantityProduct(1, new ProductStub {Weight = 3.0/16}),
                new ShoppingCartQuantityProduct(2, new ProductStub {Weight = 2.0/16})
            };
            var defaultShippingMethod = ShippingHelpers.BuildUspsShippingMethod(
                maximumQuantity: 2);
            var shippingMethods = new IShippingMethod[] { defaultShippingMethod };
            var wca = ShippingHelpers.GetUspsWorkContextAccessor("foo", false, false, 3);
            var prices = defaultShippingMethod.ComputePrice(cart, shippingMethods, Country.UnitedStates, "90220", wca);
            Assert.That(prices, Is.Empty);
        }

42. Example

View license
[Test]
        public void LessThanMinimumTotalQuantityMisses() {
            var cart = new[] {
                new ShoppingCartQuantityProduct(1, new ProductStub {Weight = 3.0/16}),
                new ShoppingCartQuantityProduct(2, new ProductStub {Weight = 2.0/16})
            };
            var defaultShippingMethod = ShippingHelpers.BuildUspsShippingMethod(
                minimumQuantity: 4);
            var shippingMethods = new IShippingMethod[] { defaultShippingMethod };
            var wca = ShippingHelpers.GetUspsWorkContextAccessor("foo", false, false, 3);
            var prices = defaultShippingMethod.ComputePrice(cart, shippingMethods, Country.UnitedStates, "90220", wca);
            Assert.That(prices, Is.Empty);
        }

43. Example

View license
[Test]
        public void WeightAboveMaximumWeightFails() {
            var cart = new[] {
                new ShoppingCartQuantityProduct(1, new ProductStub {Weight = 3.0/16}),
                new ShoppingCartQuantityProduct(2, new ProductStub {Weight = 2.0/16})
            };
            var defaultShippingMethod = ShippingHelpers.BuildUspsShippingMethod();
            defaultShippingMethod.WeightPaddingInOunces = 1;
            defaultShippingMethod.MaximumWeightInOunces = 6.9;
            var shippingMethods = new IShippingMethod[] {defaultShippingMethod};
            var wca = ShippingHelpers.GetUspsWorkContextAccessor("foo", false, false, 3);
            var prices = defaultShippingMethod.ComputePrice(cart, shippingMethods, Country.UnitedStates, "90220", wca);
            Assert.That(prices, Is.Empty);
        }

44. Example

View license
[Test]
        public void MoreThanMaximumDistinctQuantityMisses() {
            var cart = new[] {
                new ShoppingCartQuantityProduct(1, new ProductStub {Weight = 3.0/16}),
                new ShoppingCartQuantityProduct(2, new ProductStub {Weight = 2.0/16})
            };
            var defaultShippingMethod = ShippingHelpers.BuildUspsShippingMethod(
                maximumQuantity: 1,
                countDistinct: true);
            var shippingMethods = new IShippingMethod[] { defaultShippingMethod };
            var wca = ShippingHelpers.GetUspsWorkContextAccessor("foo", false, false, 3);
            var prices = defaultShippingMethod.ComputePrice(cart, shippingMethods, Country.UnitedStates, "90220", wca);
            Assert.That(prices, Is.Empty);
        }

45. Example

Project: BloomDesktop
Source File: BookTransferTests.cs
View license
private void Login()
		{
			Assert.That(_transfer.LogIn("[email protected]", "unittest"), Is.True,
				"Could not log in using the [email protected] account");
		}

46. Example

Project: VrPlayer
Source File: PresetsSteps.cs
View license
[Then(@"there are no more effects")]
        public void ThenThereAreNoMoreEffects()
        {
            Assert.That(_stateMock.Object.EffectPlugin, Is.Null);
        }

47. Example

View license
[Test]
		public void FindAllAudioTracks_Test_Basic()
		{
			_audioTracks = _api.FindAllAudioTracks();

			// Since we're testing against a test account that has a variable amount of audio tracks, we can only test that the collection is not null.
			Assert.That(_audioTracks != null && _audioTracks.Any());
		}

48. Example

View license
[Test]
        public void TestOnCreatedCalledWhenUsingCreateMethod()
        {
            using (var context = new MyEntityContext(_connectionString))
            {
                var entity = context.TestEntities.Create() as TestEntity;
                Assert.That(entity, Is.Not.Null);
                Assert.That(entity.OnCreatedWasCalled);
                context.SaveChanges();
            }

        }

49. Example

View license
[Test]
        public void TestOnCreatedCalledWhenUsingConstructor()
        {
            using (var context = new MyEntityContext(_connectionString))
            {
                var entity = new TestEntity();
                Assert.That(entity.OnCreatedWasCalled);
                context.TestEntities.Add(entity);
                context.SaveChanges();
            }
        }

50. Example

Project: BrightstarDB
Source File: RdfDatatypesTests.cs
View license
[Test]
        public void TestBooleanRoundtrip()
        {
            var bsString = RdfDatatypes.GetLiteralString(true);
            Assert.That(RdfDatatypes.ParseLiteralString(bsString, RdfDatatypes.Boolean, null), Is.True);
            bsString = RdfDatatypes.GetLiteralString(false);
            Assert.That(RdfDatatypes.ParseLiteralString(bsString, RdfDatatypes.Boolean, null), Is.False);
        }