コード例 #1
0
 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");
 }
コード例 #2
0
 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)
 {
 }
コード例 #4
0
 public void AreEqualTest()
 {
     GraphicsDeviceInformation gdi2 = new GraphicsDeviceInformation();
     Assert.AreEqual(gdi, gdi2, "Objects were expected to be equal");
 }
コード例 #5
0
 public void Setup()
 {
     gdi = new GraphicsDeviceInformation();
 }