Ejemplo n.º 1
0
        public void LoadRandomProfile()
        {
            OpenRGBClient client   = new OpenRGBClient(name: "OpenRGB.NET Test: LoadRandomProfile");
            var           profiles = client.GetProfiles();
            var           loadMe   = profiles[new Random().Next(0, profiles.Length)];

            client.LoadProfile(loadMe);
        }
Ejemplo n.º 2
0
        public void TestProtocolVersionTwo()
        {
            using OpenRGBClient versionOne = new OpenRGBClient(protocolVersion: 1);
            Assert.Throws <NotSupportedException>(() => versionOne.GetProfiles());

            using OpenRGBClient versionTwo = new OpenRGBClient(protocolVersion: 2);
            var exception = Record.Exception(() => versionTwo.GetProfiles());

            Assert.Null(exception);
        }