Пример #1
0
        public void PitchOffset_Set_Get()
        {
            var packet = new ServerSound();

            packet.PitchOffset = 1F;

            Assert.Equal(1F, packet.PitchOffset);
        }
Пример #2
0
        public void Volume_Set_Get()
        {
            var packet = new ServerSound();

            packet.Volume = 1F;

            Assert.Equal(1F, packet.Volume);
        }
Пример #3
0
        public void SoundIndex_Set_Get()
        {
            var packet = new ServerSound();

            packet.SoundIndex = 1;

            Assert.Equal(1, packet.SoundIndex);
        }
Пример #4
0
        public void Style_Set_Get()
        {
            var packet = new ServerSound();

            packet.Style = 1;

            Assert.Equal(1, packet.Style);
        }
Пример #5
0
        public void Position_Set_Get()
        {
            var packet = new ServerSound();

            packet.Position = new Vector2f(1.23F, 4.56F);

            Assert.Equal(new Vector2f(1.23F, 4.56F), packet.Position);
        }