public void DoesNotEqualWithDifferentName() { var anotherRegion = Region; anotherRegion.Name = "differentName"; var anotherRegionModel = new RegionDetailedInfoModel(anotherRegion); Assert.IsFalse(RegionDetailedInfoModel.Equals(anotherRegionModel)); }
public void TestInitialize() { Region = new Region { Id = 1, Name = "region 1", Description = "aDescription", VideoPath = "aVideoPath", MapYellow = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }, MapTransparent = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 } }; RegionDetailedInfoModel = new RegionDetailedInfoModel(Region); }
public void EqualsAnotherWithSameIdAndName() { var anotherRegionModel = new RegionDetailedInfoModel(Region); Assert.IsTrue(RegionDetailedInfoModel.Equals(anotherRegionModel)); }