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

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

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

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