public void Deserialize_Invalid_Format() { // arrange var type = new FieldSetType(); const string serialized = "1"; // act void Action() => type.Deserialize(serialized); // assert Assert.Throws <SerializationException>(Action); }
public void Deserialize() { // arrange var type = new FieldSetType(); const string serialized = "a b c d e(d: $b)"; // act var selectionSet = type.Deserialize(serialized); // assert Assert.IsType <SelectionSetNode>(selectionSet); }