public void GoodListItem_ReturnsExpectedName() { // arrange ListItemModel item = MakeListItemModel(); string expected = MakeListItemModel() .Name; byte[] testBarcode = { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }; // act ItemBarcodeModel results = item.ToItemBarcodeModel(testBarcode); // assert results.Name .Should() .Be(expected); }
public void GoodListItem_ReturnsExpectedBarcode() { // arrange ListItemModel item = MakeListItemModel(); byte[] testBarcode = { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }; byte[] expected = testBarcode; // act ItemBarcodeModel results = item.ToItemBarcodeModel(testBarcode); // assert results.BarCode .Should() .BeEquivalentTo(expected); }