public GetFieldNames ( |
||
type | Type of the model. | |
리턴 | HashSet |
public void ReturnsCorrectValue() { var serializationManager = new SerializationManager(); var fields = serializationManager.GetFieldNames(typeof(TestModel)).ToArray(); Assert.AreEqual(1, fields.Length); Assert.AreEqual("_includedField", fields[0]); }
public void ThrowsArgumentNullExceptionForNullType() { var serializationManager = new SerializationManager(); ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() => serializationManager.GetFieldNames(null)); }