コード例 #1
0
 public void NetworkTypeIsNullByDefaultToPreventUnnecessaryTransmissionOfDefaultValue()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     Assert.Null(context.NetworkType);
 }
コード例 #2
0
 public void DeviceModelIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     Assert.Null(context.Model);
 }
コード例 #3
0
 public void DeviceModelCanBeChangedByUserToSpecifyACustomValue()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     context.Model = "test value";
     Assert.Equal("test value", context.Model);
 }
コード例 #4
0
 public void OperatingSystemIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     Assert.Null(context.OperatingSystem);
 }
コード例 #5
0
 public void OperatingSystemCanBeChangedByUserToSpecifyACustomValue()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     context.OperatingSystem = "test value";
     Assert.Equal("test value", context.OperatingSystem);
 }
コード例 #6
0
 public void RoleInstanceIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     Assert.Null(context.RoleInstance);
 }
コード例 #7
0
        public void RoleInstanceCanBeChangedByUserSpecifyACustomValue()
        {
            var context = new DeviceContext(new Dictionary<string, string>());
            context.RoleInstance = "Testing role name";

            Assert.Equal("Testing role name", context.RoleInstance);
        }
コード例 #8
0
 public void ScreenResolutionIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     Assert.Null(context.ScreenResolution);
 }
コード例 #9
0
 public void ScreenResolutionCanBeChangedByUserToSpecifyACustomValue()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     context.ScreenResolution = "test value";
     Assert.Equal("test value", context.ScreenResolution);
 }
コード例 #10
0
        public void DeviceModelIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
        {
            var context = new DeviceContext(new Dictionary <string, string>());

            Assert.Null(context.Model);
        }
コード例 #11
0
 public void NetworkTypeCanBeChangedByUserToSpecifyACustomValue()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     context.NetworkType = "42";
     Assert.Equal("42", context.NetworkType);
 }
コード例 #12
0
        public void OperatingSystemIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
        {
            var context = new DeviceContext(new Dictionary <string, string>());

            Assert.Null(context.OperatingSystem);
        }
コード例 #13
0
        public void ScreenResolutionIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
        {
            var context = new DeviceContext(new Dictionary <string, string>());

            Assert.Null(context.ScreenResolution);
        }
コード例 #14
0
        public void NetworkTypeIsNullByDefaultToPreventUnnecessaryTransmissionOfDefaultValue()
        {
            var context = new DeviceContext(new Dictionary <string, string>());

            Assert.Null(context.NetworkType);
        }
コード例 #15
0
        public void RoleInstanceIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
        {
            var context = new DeviceContext(new Dictionary<string, string>());
#pragma warning disable 618
            Assert.Null(context.RoleInstance);
#pragma warning restore 618
        }
コード例 #16
0
        public void RoleNameCanBeChangedByUserSpecifyACustomValue()
        {
            var context = new DeviceContext(new Dictionary<string, string>());
#pragma warning disable 618
            context.RoleName = "Testing role name";

            Assert.Equal("Testing role name", context.RoleName);
#pragma warning restore 618
        }