public void TestCreation() { ManagedObjectName name = new ManagedObjectName("domain.org"); ManagedInstance instance1 = new ManagedInstance("typename", name); AssertEquals( "typename", instance1.TypeName ); AssertEquals( name, instance1.Name ); }
public override bool Equals(object obj) { ManagedInstance other = (ManagedInstance)obj; if (other != null) { return(other.name.Equals(name) && other.typeName.Equals(typeName)); } return(false); }