NUnit.Framework.Assert.That(object, NUnit.Framework.Constraints.IResolveConstraint, string, params object[])

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

200 Examples 7

1. Example

Project: ContinuousTests
Source File: FileAssert.cs
View license
static public void AreNotEqual( Stream expected, Stream actual, string message, params object[] args)
		{
			Assert.That( actual, new NotConstraint( new EqualConstraint( expected ) ), message, args );
		}

2. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void ByVal(object actual, IResolveConstraint expression)
        {
            Assert.That(actual, expression, null, null);
        }

3. Example

Project: ContinuousTests
Source File: AssertionHelper.cs
View license
public void Expect(bool condition)
		{
			Assert.That(condition, Is.True, null, null);
        }

4. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
static public void That(object actual, IResolveConstraint expression)
        {
            Assert.That(actual, expression, null, null);
        }

5. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNotEmpty(ICollection collection, string message, params object[] args)
        {
            Assert.That(collection, Is.Not.Empty ,message, args);
        }

6. Example

Project: ContinuousTests
Source File: CollectionAssert.cs
View license
public static void AllItemsAreNotNull (IEnumerable collection, string message, params object[] args) 
		{
            Assert.That(collection, new AllItemsConstraint(new NotConstraint(new EqualConstraint(null))), message, args);
		}

7. Example

Project: ContinuousTests
Source File: CollectionAssert.cs
View license
public static void AreNotEquivalent (IEnumerable expected, IEnumerable actual, string message, params object[] args)
		{
            Assert.That(actual, new NotConstraint(new CollectionEquivalentConstraint(expected)), message, args);
		}

8. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
static public void That(object actual, IResolveConstraint expression, string message)
        {
            Assert.That(actual, expression, message, null);
        }

9. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNotEmpty(string aString, string message)
        {
            Assert.That(aString, Is.Not.Empty ,message, null);
        }

10. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void That(bool condition, string message, params object[] args)
        {
            Assert.That(condition, Is.True, message, args);
        }

11. Example

Project: ContinuousTests
Source File: DirectoryAssert.cs
View license
static public void AreEqual(DirectoryInfo expected, DirectoryInfo actual, string message, params object[] args)
        {
            Assert.That(actual, new EqualConstraint(expected), message, args);
        }

12. Example

Project: ContinuousTests
Source File: StringAssert.cs
View license
static public void AreNotEqualIgnoringCase(string expected, string actual, string message, params object[] args)
        {
            Assert.That(actual, new NotConstraint( new EqualConstraint(expected).IgnoreCase ), message, args);
        }

13. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void False(bool condition)
        {
            Assert.That(condition, Is.False, null, null);
        }

14. Example

Project: ContinuousTests
Source File: DirectoryAssert.cs
View license
static public void IsWithin(string directory, string actual, string message, params object[] args)
        {
			Assert.That(actual, new SubPathConstraint(directory), message, args);
        }

15. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsEmpty(string aString, string message, params object[] args)
        {
            Assert.That(aString, new EmptyStringConstraint() ,message, args);
        }

16. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNaN(double aDouble, string message)
        {
            Assert.That(aDouble, Is.NaN ,message, null);
        }

17. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void Null(object anObject, string message)
        {
            Assert.That(anObject, Is.Null ,message, null);
        }

18. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void True(bool condition, string message)
        {
            Assert.That(condition, Is.True ,message, null);
        }

19. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNotNullOrEmpty(string aString)
        {
            Assert.That(aString, new NotConstraint( new NullOrEmptyStringConstraint()) ,null, null);
        }

20. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNotNull(object anObject, string message, params object[] args)
        {
            Assert.That(anObject, Is.Not.Null ,message, args);
        }

21. Example

Project: ContinuousTests
Source File: StringAssert.cs
View license
static public void DoesNotMatch(string pattern, string actual, string message, params object[] args)
        {
            Assert.That(actual, new NotConstraint( new RegexConstraint(pattern) ), message, args);
        }

22. Example

Project: ContinuousTests
Source File: AssertionHelper.cs
View license
public void Expect(object actual, IResolveConstraint constraint, string message)
        {
            Assert.That(actual, constraint, message, null);
        }

23. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsFalse(bool condition, string message, params object[] args)
        {
            Assert.That(condition, Is.False, message, args);
        }

24. Example

Project: ContinuousTests
Source File: StringAssert.cs
View license
static public void DoesNotStartWith(string expected, string actual, string message, params object[] args)
        {
            Assert.That(actual, new NotConstraint( new StartsWithConstraint(expected) ), message, args);
        }

25. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNotEmpty(string aString, string message)
        {
            Assert.That(aString, Is.Not.Empty ,message, null);
        }

26. Example

Project: ContinuousTests
Source File: AssertionHelper.cs
View license
public void Expect(object actual, IResolveConstraint constraint)
        {
            Assert.That(actual, constraint, null, null);
        }

27. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNotNull(object anObject)
        {
            Assert.That(anObject, Is.Not.Null, null, null);
        }

28. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNaN(double aDouble, string message, params object[] args)
        {
            Assert.That(aDouble, Is.NaN ,message, args);
        }

29. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void ByVal(object actual, IResolveConstraint expression, string message)
        {
            Assert.That(actual, expression, message, null);
        }

30. Example

Project: ContinuousTests
Source File: DirectoryAssert.cs
View license
static public void AreNotEqual(DirectoryInfo expected, DirectoryInfo actual, string message, params object[] args)
        {
            Assert.That(actual, new NotConstraint(new EqualConstraint(expected)), message, args);
        }

31. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
static public void That(object actual, IResolveConstraint expression)
        {
            Assert.That(actual, expression, null, null);
        }

32. Example

Project: ContinuousTests
Source File: CollectionAssert.cs
View license
public static void DoesNotContain (IEnumerable collection, Object actual, string message, params object[] args)
		{
            Assert.That(collection, new NotConstraint( new CollectionContainsConstraint( actual ) ), message, args);
		}

33. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNull(object anObject, string message, params object[] args)
        {
            Assert.That(anObject, Is.Null ,message, args);
        }

34. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void False(bool condition)
        {
            Assert.That(condition, Is.False ,null, null);
        }

35. Example

Project: ContinuousTests
Source File: StringAssert.cs
View license
static public void EndsWith(string expected, string actual, string message, params object[] args)
        {
            Assert.That(actual, new EndsWithConstraint(expected), message, args);
        }

36. Example

Project: ContinuousTests
Source File: StringAssert.cs
View license
static public void DoesNotContain(string expected, string actual, string message, params object[] args)
        {
            Assert.That(actual, new NotConstraint( new SubstringConstraint(expected) ), message, args );
        }

37. Example

Project: ContinuousTests
Source File: DirectoryAssert.cs
View license
static public void IsNotWithin(string directory, string actual, string message, params object[] args)
        {
			Assert.That(actual, new NotConstraint(new SubPathConstraint(directory)), message, args);
        }

38. Example

Project: ContinuousTests
Source File: DirectoryAssert.cs
View license
static public void IsWithin(string directory, string actual, string message, params object[] args)
        {
			Assert.That(actual, new SubPathConstraint(directory), message, args);
        }

39. Example

Project: ContinuousTests
Source File: StringAssert.cs
View license
static public void IsMatch(string pattern, string actual, string message, params object[] args)
        {
            Assert.That(actual, new RegexConstraint(pattern), message, args);
        }

40. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void That(object actual, IResolveConstraint expression)
        {
            Assert.That(actual, expression, null, null);
        }

41. Example

Project: ContinuousTests
Source File: CollectionAssert.cs
View license
public static void IsOrdered(IEnumerable collection, string message, params object[] args)
        {
            Assert.That(collection, new CollectionOrderedConstraint(), message, args);
        }

42. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNotEmpty(string aString)
        {
            Assert.That(aString, Is.Not.Empty ,null, null);
        }

43. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNull(object anObject, string message)
        {
            Assert.That(anObject, Is.Null, message, null);
        }

44. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void That(object actual, IResolveConstraint expression, string message)
        {
            Assert.That(actual, expression, message, null);
        }

45. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void True(bool condition, string message, params object[] args)
        {
            Assert.That(condition, Is.True, message, args);
        }

46. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsNotNullOrEmpty(string aString, string message, params object[] args)
        {
            Assert.That(aString, new NotConstraint(new NullOrEmptyStringConstraint()), message, args);
        }

47. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void NotNull(object anObject, string message)
        {
            Assert.That(anObject, Is.Not.Null ,message, null);
        }

48. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static void IsEmpty(ICollection collection)
        {
            Assert.That(collection, new EmptyCollectionConstraint() ,null, null);
        }

49. Example

Project: ContinuousTests
Source File: CollectionAssert.cs
View license
public static void AreEqual (IEnumerable expected, IEnumerable actual, string message, params object[] args) 
		{
			//AreEqual(expected, actual, null, message, args);
            Assert.That(actual, new EqualConstraint(expected), message, args);
		}

50. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void That(object actual, IResolveConstraint expression)
        {
            Assert.That(actual, expression, null, null);
        }