53 references to Assert
PresentationFramework (53)
System\Windows\Shell\WindowChrome.cs (2)
76
Assert
.IsNotNull(window);
333
Assert
.IsNotNull(bp.DependencyProperty);
System\Windows\Shell\WindowChromeWorker.cs (23)
83
Assert
.IsNotNull(_window);
122
Assert
.IsNotNull(w);
123
Assert
.IsNotNull(cw);
124
Assert
.IsNull(cw._window);
131
Assert
.IsNull(_window);
132
Assert
.IsNotNull(window);
157
Assert
.IsNotNull(_hwndSource);
174
Assert
.IsNotDefault(_hwnd);
176
Assert
.IsNotNull(_hwndSource);
287
Assert
.IsNotNull(_chromeInfo);
288
Assert
.IsNotNull(_window);
353
Assert
.AreEqual(hwnd, _hwnd);
581
Assert
.IsNotDefault(lParam);
617
Assert
.IsNotDefault(_hwnd);
842
Assert
.AreEqual(topRightRegionRect.Right, windowSize.Width);
850
Assert
.AreEqual(bottomLeftRegionRect.Bottom, windowSize.Height);
858
Assert
.AreEqual(bottomRightRegionRect.Right, windowSize.Width);
859
Assert
.AreEqual(bottomRightRegionRect.Bottom, windowSize.Height);
940
Assert
.IsNotNull(_window);
1124
Assert
.IsNotDefault(_hwnd);
1125
Assert
.IsNotNull(_window);
1144
Assert
.IsNull(_chromeInfo);
1145
Assert
.IsNotNull(_window);
System\Windows\Standard\Debug.cs (2)
198
Assert
.Fail();
207
Assert
.Fail();
System\Windows\Standard\ErrorCodes.cs (6)
253
Assert
.Implies((int)facility != (int)((int)facility & 0x1FF), facility == Facility.Ese || facility == Facility.WinCodec);
255
Assert
.AreEqual(code, code & 0xFFFF);
417
Assert
.IsNotNull(e);
422
Assert
.IsFalse(e is ArgumentNullException);
444
Assert
.IsNotNull(e);
458
Assert
.Fail();
System\Windows\Standard\MessageWindow.cs (1)
164
Assert
.IsNotNull(hwndWrapper);
System\Windows\Standard\NativeMethods.cs (7)
1400
Assert
.NullableIsNull(_hwnd);
1613
Assert
.IsNotNull(_cp);
2381
Assert
.AreEqual(IntPtr.Zero, p);
2564
Assert
.IsTrue(Utility.IsWindows11_22H2OrNewer);
2571
Assert
.IsTrue(Utility.IsWindows11_22H2OrNewer);
2579
Assert
.IsTrue(Utility.IsOSVistaOrNewer);
2586
Assert
.IsTrue(Utility.IsOSWindows7OrNewer);
System\Windows\Standard\Utilities.cs (5)
223
Assert
.IsTrue(Marshal.IsComObject(t));
234
Assert
.IsNotNull(property);
235
Assert
.IsNotNull(listener);
247
Assert
.IsNotNull(property);
248
Assert
.IsNotNull(listener);
System\Windows\Standard\Verify.cs (6)
59
Assert
.IsNeitherNullNorEmpty(name);
83
Assert
.IsNeitherNullNorEmpty(name);
254
Assert
.IsNeitherNullNorEmpty(parameterName);
277
Assert
.IsNotNull(parameter);
278
Assert
.IsNotNull(interfaceType);
279
Assert
.IsTrue(interfaceType.IsInterface);
System\Windows\SystemParameters.cs (1)
5611
Standard.
Assert
.IsNeitherNullNorEmpty(UxThemeName);