public void SampleConversionDoesntYeildNull() { WordConverter w = new WordConverter(); string jan = "jan"; Word janWord = w.ConvertFrom(jan) as Word; Assert.NotNull(janWord); }
public void ToAndFromStringMatch() { WordConverter w = new WordConverter(); string jan = "jan"; Word janWord = w.ConvertFrom(jan) as Word; Assert.NotNull(janWord); Assert.AreEqual(jan, janWord.ToString()); }
public void SampleConversionYeildsSameText() { WordConverter w = new WordConverter(); string jan = "jan"; Word janWord = w.ConvertFrom(jan) as Word; Assert.NotNull(janWord); Assert.AreEqual(janWord.Text, jan); }
public void YesWeCanConvertFromString() { WordConverter w = new WordConverter(); Assert.IsTrue(w.CanConvertFrom(typeof(string))); }