53 references to Assert
PresentationFramework (53)
System\Windows\Shell\WindowChrome.cs (2)
73
Assert
.IsNotNull(window);
330
Assert
.IsNotNull(bp.DependencyProperty);
System\Windows\Shell\WindowChromeWorker.cs (23)
78
Assert
.IsNotNull(_window);
117
Assert
.IsNotNull(w);
118
Assert
.IsNotNull(cw);
119
Assert
.IsNull(cw._window);
126
Assert
.IsNull(_window);
127
Assert
.IsNotNull(window);
152
Assert
.IsNotNull(_hwndSource);
169
Assert
.IsNotDefault(_hwnd);
171
Assert
.IsNotNull(_hwndSource);
282
Assert
.IsNotNull(_chromeInfo);
283
Assert
.IsNotNull(_window);
348
Assert
.AreEqual(hwnd, _hwnd);
576
Assert
.IsNotDefault(lParam);
612
Assert
.IsNotDefault(_hwnd);
837
Assert
.AreEqual(topRightRegionRect.Right, windowSize.Width);
845
Assert
.AreEqual(bottomLeftRegionRect.Bottom, windowSize.Height);
853
Assert
.AreEqual(bottomRightRegionRect.Right, windowSize.Width);
854
Assert
.AreEqual(bottomRightRegionRect.Bottom, windowSize.Height);
935
Assert
.IsNotNull(_window);
1119
Assert
.IsNotDefault(_hwnd);
1120
Assert
.IsNotNull(_window);
1139
Assert
.IsNull(_chromeInfo);
1140
Assert
.IsNotNull(_window);
System\Windows\Standard\Debug.cs (2)
194
Assert
.Fail();
203
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)
161
Assert
.IsNotNull(hwndWrapper);
System\Windows\Standard\NativeMethods.cs (7)
1395
Assert
.NullableIsNull(_hwnd);
1608
Assert
.IsNotNull(_cp);
2376
Assert
.AreEqual(IntPtr.Zero, p);
2559
Assert
.IsTrue(Utility.IsWindows11_22H2OrNewer);
2566
Assert
.IsTrue(Utility.IsWindows11_22H2OrNewer);
2574
Assert
.IsTrue(Utility.IsOSVistaOrNewer);
2581
Assert
.IsTrue(Utility.IsOSWindows7OrNewer);
System\Windows\Standard\Utilities.cs (5)
214
Assert
.IsTrue(Marshal.IsComObject(t));
225
Assert
.IsNotNull(property);
226
Assert
.IsNotNull(listener);
238
Assert
.IsNotNull(property);
239
Assert
.IsNotNull(listener);
System\Windows\Standard\Verify.cs (6)
57
Assert
.IsNeitherNullNorEmpty(name);
81
Assert
.IsNeitherNullNorEmpty(name);
252
Assert
.IsNeitherNullNorEmpty(parameterName);
275
Assert
.IsNotNull(parameter);
276
Assert
.IsNotNull(interfaceType);
277
Assert
.IsTrue(interfaceType.IsInterface);
System\Windows\SystemParameters.cs (1)
5607
Standard.
Assert
.IsNeitherNullNorEmpty(UxThemeName);