/// <summary> /// Sets internal property... /// </summary> public void SetPlatform(Agent agent) { agent.Platform = "Windows"; // Hack around the internal settor var xray = ObjectXRay.NewType(typeof(Agent), agent); xray.SetField("m_AgentType", AgentType.Windows); }
private void GetAssertBuilderOutput(AssertBuilder codeGen, Type target) { ObjectXRay xray = ObjectXRay.NewType(typeof(AssertBuilder), codeGen); xray.SetProperty("TestMode", true); codeGen.Generate(target); Console.WriteLine("Assert.AreEqual(@\"" + EncodeForString(codeGen.GetEmittedCode()) + "\", codeGen.GetEmittedCode());"); }