public void WhenSinglePropWithKey_DoesNotThrow() { MockUIRenderer.CheckPropertyListKeys(new List <ISharpProp> { new Props.TextBlock { Key = 1 } }, "sourceProperty", "sourceType"); }
public void WhenTwoPropsWithDifferentKeys_DoesNotThrow() { MockUIRenderer.CheckPropertyListKeys(new List <ISharpProp> { new Props.TextBlock { Key = 1 }, new Props.TextBlock { Key = 2 } }, "sourceProperty", "sourceType"); }
public void WhenTwoPropsWithEqualKeys_DoesThrowException() { Assert.Throws <DuplicateKeyException>(() => MockUIRenderer.CheckPropertyListKeys(new List <ISharpProp> { new Props.TextBlock { Key = 1 }, new Props.TextBlock { Key = 1 } }, "sourceProperty", "sourceType") ); }
public void WhenPropsIsNull_DoesNotThrow() { MockUIRenderer.CheckPropertyListKeys(null, "sourceProperty", "sourceType"); }