Ejemplo n.º 1
0
        public void TeamWithIVScalingOff_255IVs_Show255()
        {
            var run = new TrainerPokemonTeamRun(Model, 0, true, SortedSpan <int> .None);

            Model.WriteMultiByteValue(0, 2, Token, 255);

            Assert.IsNotType <ArrayRunTupleSegment>(run.ElementContent[0]);
            Assert.Contains("IVs=255", run.SerializeRun());
        }
Ejemplo n.º 2
0
        public void TrainerData_Serialize_SeeIVLabel()
        {
            var parent = SetupTrainerTable(0x100, 1);

            parent.WriteValue(4, Model, ViewPort.CurrentChange, 0, "pokemonCount");
            parent.WritePointer(0x80, Model, ViewPort.CurrentChange, 0, "pokemon");
            var teamRun = new TrainerPokemonTeamRun(Model, 0x80, false, new SortedSpan <int>(0x100 + 36));

            Model.ObserveRunWritten(ViewPort.CurrentChange, teamRun);

            var text = teamRun.SerializeRun();

            Assert.Contains("(IVs=0)", text);
        }