xstream.XStreamAssert.DoesntContain C# (CSharp) Method

DoesntContain() public static method

public static DoesntContain ( string expectedSubstring, string actual ) : void
expectedSubstring string
actual string
return void
        public static void DoesntContain(string expectedSubstring, string actual) {
            Contains(false, actual, expectedSubstring, "contains");
        }

Usage Example

Esempio n. 1
0
        public void AbleToAliasDuringSerialisation()
        {
            Person person = new Person("me");

            XStreamAssert.Contains(@"class=""xstream.Person", xstream.ToXml(person));
            xstream.AddAlias(new PersonAlias());
            XStreamAssert.DoesntContain(@"class=""xstream.Person", xstream.ToXml(person));
        }