public void ReturnSelfCustomization(SubstituteAttribute sut, MethodInfo method) { // Act IArgNullExCustomization customization = sut.GetCustomization(method); // Assert Assert.Same(sut, customization); }
public void InitializeWithTypes() { // Act var sut = new SubstituteAttribute(typeof(Dictionary <,>), typeof(Dictionary <string, string>)); // Assert Assert.Same(typeof(Dictionary <,>), sut.OriginalType); Assert.Same(typeof(Dictionary <string, string>), sut.NewType); }
public void InitializeWithTypes() { // Act var sut = new SubstituteAttribute(typeof(Dictionary<,>), typeof(Dictionary<string, string>)); // Assert Assert.Same(typeof(Dictionary<,>), sut.OriginalType); Assert.Same(typeof(Dictionary<string, string>), sut.NewType); }
public void BeACustomization(SubstituteAttribute sut) { // Assert Assert.IsAssignableFrom <IArgNullExCustomization>(sut); Assert.IsAssignableFrom <CustomizeAttribute>(sut); }
public void BeACustomization(SubstituteAttribute sut) { // Assert Assert.IsAssignableFrom<IArgNullExCustomization>(sut); Assert.IsAssignableFrom<CustomizeAttribute>(sut); }