/// <summary>
 /// Creates a Runtime instance while loading relevant data
 /// </summary>
 /// <returns>An instance if any property was successfuly set or null otherwise.</returns>
 public static Runtime Create()
 {
     try
     {
         return(RuntimeInfoHelper.GetRuntime());
     }
     catch (Exception e)
     {
         SystemUtil.WriteError(e);
         return(null);
     }
 }
        public void Create_Runtime_NotNullAndAsHelper()
        {
            var actual = Runtime.Create();

            var expected = RuntimeInfoHelper.GetRuntime();

            Assert.NotNull(actual);
            Assert.AreEqual(expected.Build, actual.Build);
            Assert.AreEqual(expected.Version, actual.Version);
            Assert.AreEqual(expected.Name, actual.Name);
            Assert.AreEqual(expected.RawDescription, actual.RawDescription);
        }
        public void GetRuntime_NotNull()
        {
            var runtime = RuntimeInfoHelper.GetRuntime();

            Assert.That(runtime, Is.Not.Null);
        }