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);
 }
Example #4
0
        public void NameShouldBeBasedOnDenominator()
        {
            var categoryFunction = new IntegerCategoryFunction("someInt", 100);

            Assert.AreEqual("100s", categoryFunction.Name);
        }
Example #5
0
        public void ShouldThrowInvalidAttributeExceptionWhenValueDoesNotParseToInteger()
        {
            var categoryFunction = new IntegerCategoryFunction("someInt", 100);

            categoryFunction.OwningPartition("NOT_AN_INTEGER");
        }
Example #6
0
        public void OwningPartitionNameShouldEqualBaseOfPartitionRange()
        {
            var categoryFunction = new IntegerCategoryFunction("someInt", 100);

            Assert.AreEqual("200", categoryFunction.OwningPartition("234"));
        }