61 references to Assert
PresentationFramework (61)
src\Framework\System\Windows\Shell\WindowChrome.cs (2)
74
Assert
.IsNotNull(window);
331
Assert
.IsNotNull(bp.DependencyProperty);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (33)
123
Assert
.IsNotNull(_window);
174
Assert
.IsNotNull(w);
175
Assert
.IsNotNull(cw);
176
Assert
.IsNull(cw._window);
187
Assert
.IsNull(_window);
188
Assert
.IsNotNull(window);
213
Assert
.IsNotNull(_hwndSource);
236
Assert
.IsNotDefault(_hwnd);
238
Assert
.IsNotNull(_hwndSource);
380
Assert
.IsNotNull(_chromeInfo);
381
Assert
.IsNotNull(_window);
536
Assert
.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4);
569
Assert
.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4);
592
Assert
.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4);
618
Assert
.AreEqual(hwnd, _hwnd);
874
Assert
.IsNotDefault(lParam);
914
Assert
.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4);
929
Assert
.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4);
935
Assert
.Implies(_window.WindowState == WindowState.Maximized, Utility.IsOSWindows7OrNewer);
956
Assert
.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4);
964
Assert
.IsTrue(Utility.IsOSWindows7OrNewer);
976
Assert
.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4);
999
Assert
.IsNotDefault(_hwnd);
1248
Assert
.AreEqual(topRightRegionRect.Right, windowSize.Width);
1256
Assert
.AreEqual(bottomLeftRegionRect.Bottom, windowSize.Height);
1264
Assert
.AreEqual(bottomRightRegionRect.Right, windowSize.Width);
1265
Assert
.AreEqual(bottomRightRegionRect.Bottom, windowSize.Height);
1358
Assert
.IsNotNull(_window);
1517
Assert
.IsNotDefault(_hwnd);
1518
Assert
.IsNotNull(_window);
1542
Assert
.IsTrue(_isFixedUp);
1554
Assert
.IsNull(_chromeInfo);
1555
Assert
.IsNotNull(_window);
src\Framework\System\Windows\Standard\Debug.cs (2)
195
Assert
.Fail();
204
Assert
.Fail();
src\Framework\System\Windows\Standard\ErrorCodes.cs (6)
297
Assert
.Implies((int)facility != (int)((int)facility & 0x1FF), facility == Facility.Ese || facility == Facility.WinCodec);
299
Assert
.AreEqual(code, code & 0xFFFF);
469
Assert
.IsNotNull(e);
474
Assert
.IsFalse(e is ArgumentNullException);
496
Assert
.IsNotNull(e);
511
Assert
.Fail();
src\Framework\System\Windows\Standard\MessageWindow.cs (1)
213
Assert
.IsNotNull(hwndWrapper);
src\Framework\System\Windows\Standard\NativeMethods.cs (5)
1425
Assert
.NullableIsNull(_hwnd);
1717
Assert
.IsNotNull(_cp);
2546
Assert
.AreEqual(IntPtr.Zero, p);
2850
Assert
.IsTrue(Utility.IsOSVistaOrNewer);
2862
Assert
.IsTrue(Utility.IsOSWindows7OrNewer);
src\Framework\System\Windows\Standard\Utilities.cs (5)
248
Assert
.IsTrue(Marshal.IsComObject(t));
259
Assert
.IsNotNull(property);
260
Assert
.IsNotNull(listener);
272
Assert
.IsNotNull(property);
273
Assert
.IsNotNull(listener);
src\Framework\System\Windows\Standard\Verify.cs (6)
58
Assert
.IsNeitherNullNorEmpty(name);
83
Assert
.IsNeitherNullNorEmpty(name);
267
Assert
.IsNeitherNullNorEmpty(parameterName);
292
Assert
.IsNotNull(parameter);
293
Assert
.IsNotNull(interfaceType);
294
Assert
.IsTrue(interfaceType.IsInterface);
src\Framework\System\Windows\SystemParameters.cs (1)
6202
Standard.
Assert
.IsNeitherNullNorEmpty(UxThemeName);