// ACT public override void Act(out object[] actual) { // Read, Update & Write PrivateProfile using (var profile = new PrivateProfile(this.FilePath, false)) { // Print Profile Console.WriteLine(); Console.WriteLine("Before Change:"); PrivateProfileTests.PrintProfile(profile); // ACT (1): Change Profile this.ChangeProfile(profile); // Print Profile Console.WriteLine(); Console.WriteLine("After Change:"); PrivateProfileTests.PrintProfile(profile); // ACT (2): Write to File profile.Write(); } // Re-Read PrivateProfile using (var profile = new PrivateProfile(this.FilePath)) { // Print Profile Console.WriteLine(); Console.WriteLine("Re-Read Profile:"); PrivateProfileTests.PrintProfile(profile); // SET Actual actual = PrivateProfileTestParameter.ConvertProfileToObjectArray(profile); } }
// ACT public override void Act(out object[] actual) { // NEW PrivateProfile from INI file var profile = new PrivateProfile(this.FilePath); // Print Profile Console.WriteLine(); Console.WriteLine("Print Profile:"); PrivateProfileTests.PrintProfile(profile); // GET Actual actual = PrivateProfileTestParameter.ConvertProfileToObjectArray(profile); }