public void BrakeIncapsulationTest() { string expected = "Test string"; var owner = new ClassDefinition(expected); var morosovInterface = new ClassDefinition.NestedPublicMorozow(owner); var result = morosovInterface.GetOwnerHiddenValue(); Assert.AreEqual(result, expected); }
public NestedPublicMorozow(ClassDefinition owner) { _owner = owner; }