public void DicomMapping_TypeWithoutAttributes_CollectionIsEmpty() { // Arrange var objectWithoutAttributes = new ObjectWithoutAttributes(); // Act var dicomMapping = new DicomMapping(objectWithoutAttributes.GetType()); // Assert CollectionAssert.IsEmpty(dicomMapping); }
public void ShouldFormatObjectWithoutAttributes() { var expected = new Dictionary <string, string> { ["Key1"] = "value1", ["Key2"] = "value2", }; var value = new ObjectWithoutAttributes { Key1 = "value1", Key2 = "value2" }; var formatter = new DefaultFormFormatter(); var result = formatter.Format(value); result.ShouldBeEquivalentTo(expected); }