public void TrySetName_space() { string TestString = null; bool state = OrderValidator.TrySetName("ab c134", out TestString); Assert.IsTrue(state); Assert.AreEqual(TestString, "ab c134"); }
public void TrySetName_emptyString() { string TestString = null; bool state = OrderValidator.TrySetName(" ", out TestString); Assert.IsFalse(state); Assert.AreEqual(TestString, ""); }
public void TrySetName_invalidCharacter() { string TestString = null; bool state = OrderValidator.TrySetName("abc134?", out TestString); Assert.IsFalse(state); Assert.AreEqual(TestString, ""); }