public GetPropertyInfo ( ) : |
||
리턴 |
public void Test_Construct_WithPropInfor_ShouldSetPropInfo() { //---------------Set up test pack------------------- PropertyInfo propertyInfo = new Habanero.Testability.Helpers.FakePropertyInfo(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var propDescriptor = new PropertyDescriptorPropInfoSpy(propertyInfo); //---------------Test Result ----------------------- Assert.IsNotNull(propDescriptor); Assert.AreSame(propertyInfo, propDescriptor.GetPropertyInfo()); }
public void Test_Construct_WithPropInfor_ShouldSetPropInfo() { //---------------Set up test pack------------------- PropertyInfo propertyInfo = new Habanero.Testability.Helpers.FakePropertyInfo(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var propDescriptor = new PropertyDescriptorPropInfoSpy(propertyInfo); //---------------Test Result ----------------------- Assert.IsNotNull(propDescriptor); Assert.AreSame(propertyInfo, propDescriptor.GetPropertyInfo()); }