当前位置: 首页>>代码示例>>C#>>正文


C# IXunitSerializationInfo.GetValue方法代码示例

本文整理汇总了C#中IXunitSerializationInfo.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# IXunitSerializationInfo.GetValue方法的具体用法?C# IXunitSerializationInfo.GetValue怎么用?C# IXunitSerializationInfo.GetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IXunitSerializationInfo的用法示例。


在下文中一共展示了IXunitSerializationInfo.GetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

        /// <inheritdoc/>
        public override void Deserialize(IXunitSerializationInfo data)
        {
            VisualStudioVersion = data.GetValue<string>("VisualStudioVersion");
            RootSuffix = data.GetValue<string>(SpecialNames.VsixAttribute.RootSuffix);
            NewIdeInstance = data.GetValue<bool?>(SpecialNames.VsixAttribute.NewIdeInstance);
			TimeoutSeconds = data.GetValue<int> (SpecialNames.VsixAttribute.TimeoutSeconds);
        }
开发者ID:victorgarciaaprea,项目名称:xunit.vsix,代码行数:8,代码来源:VsixTestCase.cs

示例2: Deserialize

        /// <inheritdoc/>
        public void Deserialize(IXunitSerializationInfo info)
        {
            TestClass = info.GetValue<ITestClass>("TestClass");

            var methodName = info.GetValue<string>("MethodName");

            Method = TestClass.Class.GetMethod(methodName, includePrivateMethod: true);
        }
开发者ID:MichalisN,项目名称:xunit,代码行数:9,代码来源:TestMethod.cs

示例3: Deserialize

        /// <inheritdoc/>
        public void Deserialize(IXunitSerializationInfo info)
        {
            TestCollection = info.GetValue<ITestCollection>("TestCollection");

            var assemblyName = info.GetValue<string>("ClassAssemblyName");
            var typeName = info.GetValue<string>("ClassTypeName");

            Class = Reflector.Wrap(SerializationHelper.GetType(assemblyName, typeName));
        }
开发者ID:modai888,项目名称:xunit,代码行数:10,代码来源:TestClass.cs

示例4: Deserialize

        /// <inheritdoc/>
        public void Deserialize(IXunitSerializationInfo info)
        {
            var assemblyPath = info.GetValue<string>("AssemblyPath");
            var assembly = System.Reflection.Assembly.Load(new AssemblyName
            {
                Name = Path.GetFileNameWithoutExtension(assemblyPath)
            });

            ConfigFileName = info.GetValue<string>("ConfigFileName");
            Assembly = Reflector.Wrap(assembly);
        }
开发者ID:remcomulder,项目名称:xunit,代码行数:12,代码来源:TestAssembly.cs

示例5: Deserialize

        /// <inheritdoc/>
        public virtual void Deserialize(IXunitSerializationInfo info)
        {
            DisplayName = info.GetValue<string>("DisplayName");
            TestAssembly = info.GetValue<ITestAssembly>("TestAssembly");
            UniqueID = Guid.Parse(info.GetValue<string>("UniqueID"));

            var assemblyName = info.GetValue<string>("DeclarationAssemblyName");
            var typeName = info.GetValue<string>("DeclarationTypeName");

            if (!string.IsNullOrWhiteSpace(assemblyName) && !string.IsNullOrWhiteSpace(typeName))
                CollectionDefinition = Reflector.Wrap(SerializationHelper.GetType(assemblyName, typeName));
        }
开发者ID:modai888,项目名称:xunit,代码行数:13,代码来源:TestCollection.cs

示例6: Deserialize

 public void Deserialize(IXunitSerializationInfo info)
 {
     testCase = info.GetValue<IXunitTestCase>("InnerTestCase");
 }
开发者ID:robertbaker,项目名称:devices.xunit,代码行数:4,代码来源:UITestCase.cs

示例7: Deserialize

        public override void Deserialize(IXunitSerializationInfo data)
        {
            base.Deserialize(data);

            this.forceDelimit = data.GetValue<bool>("ForceDelimit");
        }
开发者ID:modulexcite,项目名称:KBCsv,代码行数:6,代码来源:WritePerformanceTestCase.cs

示例8: Deserialize

 public void Deserialize(IXunitSerializationInfo info)
 {
     this.clientName = info.GetValue<string>("clientName");
 }
开发者ID:jwynia,项目名称:stormpath-sdk-dotnet,代码行数:4,代码来源:TestClientProvider.cs

示例9: Deserialize

 public void Deserialize(IXunitSerializationInfo info)
 {
     TestName = info.GetValue<string>(nameof(TestName));
     Filename = info.GetValue<string>(nameof(Filename));
     FileContents = info.GetValue<string>(nameof(FileContents));
 }
开发者ID:stormpath,项目名称:stormpath-dotnet-config,代码行数:6,代码来源:ConfigTestCaseBase.cs

示例10: Deserialize

        /// <inheritdoc/>
        public override void Deserialize(IXunitSerializationInfo data)
        {
            base.Deserialize(data);

            ErrorMessage = data.GetValue<string>("ErrorMessage");
        }
开发者ID:remcomulder,项目名称:xunit,代码行数:7,代码来源:ExecutionErrorTestCase.cs

示例11: Deserialize

        public override void Deserialize(IXunitSerializationInfo data)
        {
            base.Deserialize(data);

            this.whiteSpacePreservation = data.GetValue<WhiteSpacePreservation>("WhiteSpacePreservation");
        }
开发者ID:modulexcite,项目名称:KBCsv,代码行数:6,代码来源:ReadPerformanceTestCase.cs

示例12: Deserialize

 /// <inheritdoc/>
 public void Deserialize(IXunitSerializationInfo info)
 {
     this.timeSpan = TimeSpan.FromTicks(info.GetValue<long>("ticks"));
 }
开发者ID:ssankar1234,项目名称:stormpath-sdk-dotnet,代码行数:5,代码来源:SerializableTimeSpan.cs

示例13: Deserialize

        public override void Deserialize(IXunitSerializationInfo data)
        {
            base.Deserialize(data);

            DisableRetry = data.GetValue<bool>("DisableRetry");
        }
开发者ID:sr457,项目名称:kudu,代码行数:6,代码来源:KuduXunitTestCase.cs

示例14: Deserialize

 public void Deserialize(IXunitSerializationInfo info)
 {
     this.Property = info.GetValue<string>("Property");
 }
开发者ID:DarranShepherd,项目名称:xunit-theorydata,代码行数:4,代码来源:JsonResourceTests.cs

示例15: Deserialize

 /// <inheritdoc/>
 public virtual void Deserialize(IXunitSerializationInfo data)
 {
     TestMethod = data.GetValue<ITestMethod>("TestMethod");
     TestMethodArguments = data.GetValue<object[]>("TestMethodArguments");
     DefaultMethodDisplay = (TestMethodDisplay)Enum.Parse(typeof(TestMethodDisplay), data.GetValue<string>("DefaultMethodDisplay"));
 }
开发者ID:JeremyCade,项目名称:xunit,代码行数:7,代码来源:TestMethodTestCase.cs


注:本文中的IXunitSerializationInfo.GetValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。