コード例 #1
0
    public void WithTwoLabels()
    {
        mockView !.SetupGet(x => x.EnabledVectorTableEntries)
        .Returns(new List <string>
        {
            SnesVectorNames.Native_ABORT,
            SnesVectorNames.Emulation_RESET,
        });

        Run(() =>
        {
            // importRomDialogController.Builder.OptionSetGenerateVectorTableLabelFor(SnesVectorNames.Native_ABORT, true);
            // importRomDialogController.Builder.OptionSetGenerateVectorTableLabelFor(SnesVectorNames.Emulation_RESET, true);
        });

        var vectorNames = generatedSettings !.InitialLabels.Select(x => x.Value.Name).ToList();

        vectorNames.Should().HaveCount(2);
    }
コード例 #2
0
 public void WithNoLabels()
 {
     Run(() => importRomDialogController.Builder.OptionClearGenerateVectorTableLabels());
     generatedSettings !.InitialLabels.Should().BeEmpty("We cleared them in the UI code");
 }