public void GetHashCodeIsNotEqualTest()
 {
     GraphicsDeviceInformation gdi2 = new GraphicsDeviceInformation();
     gdi2.PresentationParameters.BackBufferWidth = 320;
     gdi2.PresentationParameters.BackBufferHeight = 240;
     Assert.AreNotEqual(gdi.GetHashCode(), gdi2.GetHashCode(), "GetHashCodes were not expected to be equal");
 }
 public void TwoInstancesAreNotEqualTest()
 {
     GraphicsDeviceInformation gdi2 = new GraphicsDeviceInformation();
     gdi2.PresentationParameters.BackBufferWidth = 320;
     gdi2.PresentationParameters.BackBufferHeight = 240;
     Assert.AreNotEqual(gdi, gdi2, "Objects were not expected to be equal");
 }
예제 #3
0
 internal GraphicsDevice(GraphicsDeviceInformation gdi)
     : this(gdi.Adapter, gdi.GraphicsProfile, gdi.PresentationParameters)
 {
 }
 public void AreEqualTest()
 {
     GraphicsDeviceInformation gdi2 = new GraphicsDeviceInformation();
     Assert.AreEqual(gdi, gdi2, "Objects were expected to be equal");
 }
 public void Setup()
 {
     gdi = new GraphicsDeviceInformation();
 }