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

AssertContains() protected method

protected AssertContains ( string expectedSubstring, string text ) : void
expectedSubstring string
text string
return void
        protected void AssertContains(
            string expectedSubstring,
            string text)
        {
            if (!text.Contains(expectedSubstring))
                Assert.Fail(
                    "Expected Substring: {0}\nNot found in: {1}",
                    expectedSubstring, text);
        }