Alquimiaware.NuGetUnity.Tests.CommandArgsBuilderTests.AssertDoesntContain C# (CSharp) Method

AssertDoesntContain() protected method

protected AssertDoesntContain ( string unexpectedSubstring, string text ) : void
unexpectedSubstring string
text string
return void
        protected void AssertDoesntContain(
            string unexpectedSubstring,
            string text)
        {
            if (text.Contains(unexpectedSubstring))
                Assert.Fail(
                    "Unexpected Substring: {0}\n Was found in: {1}",
                    unexpectedSubstring, text);
        }