NUnit.Framework.Assert.True(bool, string, params object[])

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

10 Examples 7

1. Example

Project: EfSchemaCompare
Source File: ExtendAsserts.cs
View license
internal static void IsA<T>(this object actualValue, string errorMessage = null) where T : class
        {
            Assert.True(actualValue.GetType() == typeof(T), "expected type {0}, but was of type {1}", typeof(T).Name, actualValue.GetType().Name);
        }

2. Example

Project: GenericServices
Source File: ExtendAsserts.cs
View license
internal static void IsA<T>(this object actualValue, string errorMessage = null) where T : class
        {
            Assert.True(actualValue.GetType() == typeof(T), "expected type {0}, but was of type {1}", typeof(T).Name, actualValue.GetType().Name);
        }

3. Example

Project: elastic-identity
Source File: TestBase.cs
View license
protected IdentityResult AssertIdentityResult( IdentityResult identityResult )
		{
			Assert.True( identityResult.Succeeded, "Errors in identity result: {0}", String.Join( ", ", identityResult.Errors ) );
			return identityResult;
		}

4. Example

View license
[Test]
		public void SavePublishedHtmlWithStyles_ProducesHeadingsAndEntriesInOrder()
		{
			var firs/n ..... /n //View Source file for more details /n }

5. Example

Project: Wish
Source File: ReplTests.cs
View license
[Test]
        public void EvalLsContainsLastWriteTimeHeader()
        {
            // actual execution - relative to Wish.Scripts.Tests\bin\Debug
            var result = ExecuteLs();
            Assert.True(result.Contains(@"LastWriteTime"), "Result was: {0}", result);
        }

6. Example

Project: Wish
Source File: ReplTests.cs
View license
[Test]
        public void EvalLsContainsDirectoryType()
        {
            // actual execution - relative to Wish.Scripts.Tests\bin\Debug
            var result = ExecuteLs();
            Assert.True(result.Contains(@"d---"), "Result was: {0}", result);
        }

7. Example

Project: Wish
Source File: ReplTests.cs
View license
[Test]
        public void EvalLsContainsFiles()
        {
            // actual execution - relative to Wish.Scripts.Tests\bin\Debug
            var result = ExecuteLs();
            Assert.True(result.Contains(@"Wish.Scripts.Tests.dll"), "Result was: {0}", result);
        }

8. Example

Project: Wish
Source File: ReplTests.cs
View license
[Test]
        public void EvalLsContainsArchiveTypes()
        {
            // actual execution - relative to Wish.Scripts.Tests\bin\Debug
            var result = ExecuteLs();
            Assert.True(result.Contains(@"-a--"), "Result was: {0}", result);
        }

9. Example

Project: Wish
Source File: ReplTests.cs
View license
[Test]
        public void EvalLsContainsDirectories()
        {
            // actual execution - relative to Wish.Scripts.Tests\bin\Debug
            var result = ExecuteLs();
            Assert.True(result.Contains(@"Test"), "Result was: {0}", result);
        }

10. Example

Project: Wish
Source File: ReplTests.cs
View license
[Test]
        public void EvalLsContainsDirectoryHeading()
        {
            // actual execution - relative to Wish.Scripts.Tests\bin\Debug
            var result = ExecuteLs();
            Assert.True(result.Contains(@"Directory: T:\src\dotnet\"), "Result was: {0}", result);
        }