Beispiel #1
0
        public void CreateOptionCollection_NullName_ThrowsArgumentNullException()
        {
            var service = new TestDesignerOptionService();

            AssertExtensions.Throws <ArgumentNullException>("name", () => service.DoCreateOptionCollection(service.Options, null, "value"));
        }
Beispiel #2
0
        public void CreateOptionCollection_EmptyName_ThrowsArgumentException()
        {
            var service = new TestDesignerOptionService();

            AssertExtensions.Throws <ArgumentException>("name.Length", () => service.DoCreateOptionCollection(service.Options, string.Empty, "value"));
        }