public void TestTypeOnlyConstructor() { Type mappedType = typeof(string); UseIResolverAttribute testAttribute = new UseIResolverAttribute(mappedType); Assert.AreEqual(mappedType, testAttribute.Type); Assert.AreEqual(String.Empty, testAttribute.Identifier); }
public void TestTypeStringConstructor() { Type mappedType = typeof(string); string identifier = "identifier"; UseIResolverAttribute testAttribute = new UseIResolverAttribute(mappedType, identifier); Assert.AreEqual(mappedType, testAttribute.Type); Assert.AreEqual(identifier, testAttribute.Identifier); }