public void attached_name_should_be_get_and_set() { // Sets AttachedName to an object. MyEntity instance1 = new MyEntity(); instance1.SetAttachedName("Instance1"); // Sets AttachedName to an object (other way). MyEntity instance2 = new MyEntity().WithAttachedName("Instance2"); // Get AttachedName instance1.GetAttachedName().Should().Be("Instance1"); instance2.GetAttachedName().Should().Be("Instance2"); }