public void HasMods_Enabled_Typical() { var listings = new ModListing[] { new ModListing(Utility.LightMasterModKey, true), new ModListing(Utility.LightMasterModKey2, false), new ModListing(Utility.LightMasterModKey3, true), }; listings .HasMods( true, Utility.LightMasterModKey, Utility.LightMasterModKey3) .Should().BeTrue(); listings .HasMods(false, Utility.LightMasterModKey2) .Should().BeTrue(); listings .HasMods( true, Utility.LightMasterModKey, Utility.LightMasterModKey2, Utility.LightMasterModKey3) .Should().BeFalse(); listings .HasMods( true, Utility.LightMasterModKey, Utility.LightMasterModKey2, Utility.LightMasterModKey4) .Should().BeFalse(); }
public void Enabled_Typical() { var listings = new ModListing[] { new ModListing(TestConstants.LightMasterModKey, true), new ModListing(TestConstants.LightMasterModKey2, false), new ModListing(TestConstants.LightMasterModKey3, true), }; listings .HasMods( true, TestConstants.LightMasterModKey, TestConstants.LightMasterModKey3) .Should().BeTrue(); listings .HasMods(false, TestConstants.LightMasterModKey2) .Should().BeTrue(); listings .HasMods( true, TestConstants.LightMasterModKey, TestConstants.LightMasterModKey2, TestConstants.LightMasterModKey3) .Should().BeFalse(); listings .HasMods( true, TestConstants.LightMasterModKey, TestConstants.LightMasterModKey2, TestConstants.LightMasterModKey4) .Should().BeFalse(); }
public void Single() { var listings = new ModListing[] { new ModListing(TestConstants.LightMasterModKey, true), new ModListing(TestConstants.LightMasterModKey2, false), new ModListing(TestConstants.LightMasterModKey3, true), }; listings .HasMods(TestConstants.LightMasterModKey) .Should().BeTrue(); listings .HasMods(TestConstants.LightMasterModKey2) .Should().BeTrue(); listings .HasMods(TestConstants.LightMasterModKey3) .Should().BeTrue(); listings .HasMods(TestConstants.LightMasterModKey4) .Should().BeFalse(); }
public void HasMods_Single() { var listings = new ModListing[] { new ModListing(Utility.LightMasterModKey, true), new ModListing(Utility.LightMasterModKey2, false), new ModListing(Utility.LightMasterModKey3, true), }; listings .HasMods(Utility.LightMasterModKey) .Should().BeTrue(); listings .HasMods(Utility.LightMasterModKey2) .Should().BeTrue(); listings .HasMods(Utility.LightMasterModKey3) .Should().BeTrue(); listings .HasMods(Utility.LightMasterModKey4) .Should().BeFalse(); }