public void Test_IntPropRule_ShouldSetDefaultValue() { //---------------Set up test pack------------------- //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var attribute = new AutoMapIntPropRuleAttribute(); //---------------Test Result ----------------------- Assert.IsInstanceOf <Attribute>(attribute); Assert.AreEqual(int.MinValue, attribute.Min); Assert.AreEqual(int.MaxValue, attribute.Max); }
public void Test_IntPropRule_ShouldSetValue() { //---------------Set up test pack------------------- const int min = 1; const int max = 10; //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var attribute = new AutoMapIntPropRuleAttribute(min, max); //---------------Test Result ----------------------- Assert.IsInstanceOf <Attribute>(attribute); Assert.AreEqual(min, attribute.Min); Assert.AreEqual(max, attribute.Max); }
public void Test_IntPropRule_ShouldSetValue() { //---------------Set up test pack------------------- const int min = 1; const int max = 10; //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var attribute = new AutoMapIntPropRuleAttribute(min, max); //---------------Test Result ----------------------- Assert.IsInstanceOf<Attribute>(attribute); Assert.AreEqual(min, attribute.Min); Assert.AreEqual(max, attribute.Max); }
public void Test_IntPropRule_ShouldSetDefaultValue() { //---------------Set up test pack------------------- //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var attribute = new AutoMapIntPropRuleAttribute(); //---------------Test Result ----------------------- Assert.IsInstanceOf<Attribute>(attribute); Assert.AreEqual(int.MinValue, attribute.Min); Assert.AreEqual(int.MaxValue, attribute.Max); }