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