public void Test_IsRegister_WhenNotRegistered_ShouldReturnFalse() { //---------------Set up test pack------------------- var stringPropDef = GetStringPropDef(); var registry = new BOPropValueGeneratorRegistry(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- bool isRegistered = registry.IsRegistered(stringPropDef); //---------------Test Result ----------------------- Assert.IsFalse(isRegistered); }
public void Test_IsRegister_WhenRegistered_ShouldReturnTrue() { //---------------Set up test pack------------------- var stringPropDef = GetStringPropDef(); var registry = new BOPropValueGeneratorRegistry(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- registry.Register(stringPropDef, typeof(ValidValueGeneratorLong)); bool isRegistered = registry.IsRegistered(stringPropDef); //---------------Test Result ----------------------- Assert.IsTrue(isRegistered); }
public void Test_IsRegister_WhenNotRegistered_ShouldReturnFalse() { //---------------Set up test pack------------------- var stringPropDef = GetStringPropDef(); var registry= new BOPropValueGeneratorRegistry(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- bool isRegistered = registry.IsRegistered(stringPropDef); //---------------Test Result ----------------------- Assert.IsFalse(isRegistered); }
public void Test_IsRegister_WhenRegistered_ShouldReturnTrue() { //---------------Set up test pack------------------- var stringPropDef = GetStringPropDef(); var registry= new BOPropValueGeneratorRegistry(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- registry.Register(stringPropDef, typeof(ValidValueGeneratorLong)); bool isRegistered = registry.IsRegistered(stringPropDef); //---------------Test Result ----------------------- Assert.IsTrue(isRegistered); }