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();
		}
示例#2
0
        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();
        }
示例#3
0
 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();
		}