public void Then_Ignores_Properties_That_Are_Not_Avaliable_In_Input_String() { var responseText = "!re=a=a=b=b"; var res = MKResponseParser.GetObject <TestModel>(responseText); Assert.Equal("a", res.A); Assert.Equal("b", res.B); Assert.Equal(null, res.C); }
public void Then_Maps_Properites_That_Are_Avaliable() { var responseText = "!re=a=a=b=b=c=c"; var res = MKResponseParser.GetObject <TestModel>(responseText); Assert.Equal("a", res.A); Assert.Equal("b", res.B); Assert.Equal("c", res.C); }
public void Then_Ignores_Fields_That_Are_Not_Avaliable_In_Object_Type() { var responseText = "!re=a=a=b=b=x=x"; var res = MKResponseParser.GetObject <TestModel>(responseText); Assert.Equal("a", res.A); Assert.Equal("b", res.B); Assert.Equal(null, res.C); }