System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (18)
119DataClass value1 = new()
126DataClass value2 = new()
225DataClass value = new()
325DataClass value = new()
377DataClass value = new()
425DataClass value = new()
471DataClass value = new()
516DataClass value = new()
565DataClass value = new()
618DataClass value = new()
1366Assert.Throws<ArgumentNullException>("store", () => service.SerializeMember(null, new DataClass(), member));
1383Assert.Throws<ArgumentNullException>("member", () => service.SerializeMember(store, new DataClass(), null));
1392Assert.Throws<InvalidOperationException>(() => service.SerializeMember(mockStore.Object, new DataClass(), member));
1402Assert.Throws<InvalidOperationException>(() => service.SerializeMember(store, new DataClass(), member));
1645Assert.Throws<ArgumentNullException>("store", () => service.SerializeMemberAbsolute(null, new DataClass(), member));
1662Assert.Throws<ArgumentNullException>("member", () => service.SerializeMemberAbsolute(store, new DataClass(), null));
1671Assert.Throws<InvalidOperationException>(() => service.SerializeMemberAbsolute(mockStore.Object, new DataClass(), member));
1681Assert.Throws<InvalidOperationException>(() => service.SerializeMemberAbsolute(store, new DataClass(), member));