public void CollectFormTest() { Error.ErrorReporter.IsUnitTesting = true; //Tests the normal form branch Form a = new Form(); a.Name = "Test Form"; VariableStorage.CollectForm(a); Assert.AreEqual(VariableStorage.TheForm, a); // //Tests if the form was null, how we handle it VariableStorage.CollectForm(null); // }