public void GetModels_Always_SetsKeyAsNameOfClass(Type type, String expected) { var result = _modelsGenerator.GetModels(type); Assert.AreEqual(expected, result.Keys.First()); }
public void GetModels_TaskOfPrimitive_ReturnsPrimitive() { var @byteTask = _modelsGenerator.GetModels(typeof(Task <byte>)); var @byte = _modelsGenerator.GetModels(typeof(byte)); const string @key = nameof(Byte); Assert.AreEqual( JsonConvert.SerializeObject(@byteTask[@key]), JsonConvert.SerializeObject(@byte[@key])); }