public void PublicFunctions_AddRecsetToEnvironment_NonExistent_ExpectAdded() { //------------Setup for test-------------------------- var env = CreateEnvironmentWithData(); //------------Execute Test--------------------------- env = PublicFunctions.AddRecsetToEnv("bob", env); //------------Assert Results------------------------- Assert.IsTrue(env.RecordSets.ContainsKey("bob")); }
public void PublicFunctions_AddRecsetToEnvironment_Existent_ExpectExisting() { //------------Setup for test-------------------------- var env = CreateEnvironmentWithData(); //------------Execute Test--------------------------- PublicFunctions.AddRecsetToEnv("Rec", env); //------------Assert Results------------------------- Assert.IsTrue(env.RecordSets.ContainsKey("Rec")); Assert.IsTrue(env.RecordSets["Rec"].Data.ContainsKey("a")); }