public void Convert_ReturnsEmptyRect_WhenNoFrameworkElementSpecified() { var converter = new FrameworkElementToWin32CoordsConverter(); var rect = converter.Convert(null, typeof(Rect), null, CultureInfo.InvariantCulture); Assert.AreEqual(new Rect(), rect); }
public void ConvertBack_WillThrow_Always() { bool thrown = false; var converter = new FrameworkElementToWin32CoordsConverter(); try { converter.ConvertBack(null, typeof(FrameworkElement), null, CultureInfo.InvariantCulture); } catch(NotImplementedException) { thrown = true; } Assert.IsTrue(thrown); }