public void Factor() { double factor = 3.1415927; var unit = new GimpUnit("foo", factor, 3, "%", "abbr", "foo", "foos"); Assert.AreEqual(factor, unit.Factor); }
public void Digits() { int digits = 3; var unit = new GimpUnit("foo", 3.1415927, digits, "%", "abbr", "foo", "foos"); Assert.AreEqual(digits, unit.Digits); }
public void Abbreviation() { string abbreviation = "abbr"; var unit = new GimpUnit("foo", 3.1415927, 3, "%", abbreviation, "foo", "foos"); Assert.AreEqual(abbreviation, unit.Abbreviation); }
public void Plural() { string plural = "foos"; var unit = new GimpUnit("foo", 3.1415927, 3, "%", "abbr", "foo", plural); Assert.AreEqual(plural, unit.Plural); }
public void Singular() { string singular = "foo"; var unit = new GimpUnit("foo", 3.1415927, 3, "%", "abbr", singular, "foos"); Assert.AreEqual(singular, unit.Singular); }
public void Symbol() { string symbol = "%"; var unit = new GimpUnit("foo", 3.1415927, 3, symbol, "abbr", "foo", "foos"); Assert.AreEqual(symbol, unit.Symbol); }
public void Identifier() { string identifier = "foo"; var unit = new GimpUnit(identifier, 3.1415927, 3, "%", "abbr", "foo", "foos"); Assert.AreEqual(identifier, unit.Identifier); }
public void NewGimpUnit() { int numberOfUnits = GimpUnit.NumberOfUnits; var unit = new GimpUnit("foo", 3.1415927, 3, "%", "abbr", "foo", "foos"); Assert.AreEqual(numberOfUnits + 1, GimpUnit.NumberOfUnits); Assert.AreEqual((int)Unit.End, GimpUnit.NumberOfBuiltInUnits); }
public void DeletionFlag() { var unit = new GimpUnit("foo", 3.1415927, 3, "%", "abbr", "foo", "foos"); Assert.IsTrue(unit.DeletionFlag); unit.DeletionFlag = false; Assert.IsFalse(unit.DeletionFlag); unit.DeletionFlag = true; Assert.IsTrue(unit.DeletionFlag); }
public void NewGimpUnit() { int numberOfUnits = GimpUnit.NumberOfUnits; var unit = new GimpUnit("foo", 3.1415927, 3, "%", "abbr", "foo", "foos"); Assert.AreEqual(numberOfUnits + 1, GimpUnit.NumberOfUnits); Assert.AreEqual((int) Unit.End, GimpUnit.NumberOfBuiltInUnits); }