public void Zero() { OrdinalFilter of = new OrdinalFilter(); String zeroStr = of.GenerateTextFromNumber(0); Assert.AreEqual(zeroStr, "0th"); }
public void Negative() { OrdinalFilter of = new OrdinalFilter(); String str = of.GenerateTextFromNumber(-1); Assert.AreEqual(str, "-1"); }
public void Decimal() { OrdinalFilter of = new OrdinalFilter(); String str = of.GenerateTextFromNumber(0.5f); Assert.AreEqual(str, "0.5"); }
public void ThreeAsFloat() { OrdinalFilter of = new OrdinalFilter(); String str = of.GenerateTextFromNumber(3.0f); Assert.AreEqual(str, "third"); }
public void Five() { OrdinalFilter of = new OrdinalFilter(); String str = of.GenerateTextFromNumber(5); Assert.AreEqual(str, "fifth"); }
public void Ten() { OrdinalFilter of = new OrdinalFilter(); String str = of.GenerateTextFromNumber(10); Assert.AreEqual(str, "10th"); }
public void Nine() { OrdinalFilter of = new OrdinalFilter(); String str = of.GenerateTextFromNumber(9); Assert.AreEqual(str, "ninth"); }
public void Large() { OrdinalFilter of = new OrdinalFilter(); String str = of.GenerateTextFromNumber(10001); Assert.AreEqual(str, "10001st"); }