public void Setup() { scene = new Scene(); for (int i = 0; i < 5; ++i) scene.Add(new Button(new Rectangle())); for (int i = 0; i < 5; ++i) scene.Add(new Slider(new Rectangle())); generator = new SceneCodeGenerator(new MockService("", "TestProject"), scene, "TestScene"); generator.GenerateSourceCodeClass(); }
public void GenerateSourceCodeShouldApplyToCodingStyle() { var newScene = new Scene(); newScene.Add(new Button(new Rectangle())); newScene.Add(new Slider(new Rectangle())); generator = new SceneCodeGenerator(new MockService("", "TestProject"), newScene, "" + "FullTestScene"); generator.GenerateSourceCodeClass(); CheckIfGeneratedCodeIsValid(); }
public void Setup() { scene = new Scene(); for (int i = 0; i < 5; ++i) { scene.Add(new Button(new Rectangle())); } for (int i = 0; i < 5; ++i) { scene.Add(new Slider(new Rectangle())); } generator = new SceneCodeGenerator(new MockService("", "TestProject"), scene, "TestScene"); generator.GenerateSourceCodeClass(); }