Ejemplo n.º 1
0
 public void AppFilterTest()
 {
     // get test
     Assert.That(AppFilter.Installed.ToString(), Is.EqualTo("installed"));
     Assert.That(AppFilter.Featured.ToString(), Is.EqualTo("featured"));
     // parse test
     Assert.That(AppFilter.FromJsonString("installed"), Is.EqualTo(AppFilter.Installed));
     Assert.That(AppFilter.FromJsonString("featured"), Is.EqualTo(AppFilter.Featured));
 }
Ejemplo n.º 2
0
        public void AppFilterTest()
        {
            // get test
            Assert.That(actual: AppFilter.Installed.ToString(), expression: Is.EqualTo(expected: "installed"));
            Assert.That(actual: AppFilter.Featured.ToString(), expression: Is.EqualTo(expected: "featured"));

            // parse test
            Assert.That(actual: AppFilter.FromJsonString(response: "installed"), expression: Is.EqualTo(expected: AppFilter.Installed));
            Assert.That(actual: AppFilter.FromJsonString(response: "featured"), expression: Is.EqualTo(expected: AppFilter.Featured));
        }