//Visual Basic 2010 Containment Object Oriented Programming public class PointAndLineTestFixtures { void Main() { this.PointTestFixture(); this.LineTextFixture(); Console.ReadLine(); } void PointTestFixture() { Point point1 = new Point(); Console.WriteLine((point1.X == 0)); Console.WriteLine((point1.Y == 0)); point1.X = 1; Console.WriteLine((point1.X == 1)); Console.WriteLine((point1.Y == 0)); point1.Y = 3; Console.WriteLine((point1.X == 1)); Console.WriteLine((point1.Y == 3)); } void LineTextFixture() { Line line1 = new Line(); Console.WriteLine((line1.StartPoint == null)); Console.WriteLine((line1.EndPoint == null)); Console.WriteLine((line1.Length == 0)); Point startPoint = new Point(); } } //Bezoek www.vbvoorbeelden.be voor meer C# voorbeelden. //Copyright - De Wolf / vbvoorbeelden - 2003-2011 - Alle rechten voorbehouden.