public void ShouldThrowInvalidAttributeExceptionWhenValueDoesNotParseToInteger() { var categoryFunction = new IntegerCategoryFunction("someInt", 100); categoryFunction.OwningPartition("NOT_AN_INTEGER"); }
public void OwningPartitionNameShouldEqualBaseOfPartitionRange() { var categoryFunction = new IntegerCategoryFunction("someInt", 100); Assert.AreEqual("200", categoryFunction.OwningPartition("234")); }
public void NameShouldBeBasedOnDenominator() { var categoryFunction = new IntegerCategoryFunction("someInt", 100); Assert.AreEqual("100s", categoryFunction.Name); }