Exemple #1
0
 public void Light_Constructor_Creates_White_Light()
 {
     var location = new Point(150.0f, 200.0f, -100.0f);
     var light = new TestLight(location);
     Assert.AreEqual(System.Drawing.Color.White, light.Colour);
 }
Exemple #2
0
 public void Light_Constructor_Stores_Location()
 {
     var location = new Point(150.0f, 200.0f, -100.0f);
     var light = new TestLight(location);
     Assert.AreEqual(location, light.Location);
 }
Exemple #3
0
 public void Light_Constructor_Creates_New_Object()
 {
     var location = new Point(150.0f, 200.0f, -100.0f);
     var light = new TestLight(location);
     Assert.IsNotNull(light);
 }