public void TestInvalidSessionIdPlaceholder() { IXenObject host = GetAnyHost(); string output = Placeholders.Substitute(@"hello {$sesion_id} there", host); Assert.AreEqual("hello {$sesion_id} there", output, "null connection session_id didn't work"); }
public void TestSessionIdWithNullConnection() { string text = @"hello {$session_id} there"; string output = Placeholders.Substitute(text, new Host()); Assert.AreEqual("hello null there", output, "null connection session_id didn't work"); }