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


C# IXunitSerializationInfo类代码示例

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


IXunitSerializationInfo类属于命名空间,在下文中一共展示了IXunitSerializationInfo类的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: Serialize

 public override void Serialize(IXunitSerializationInfo data)
 {
     data.AddValue("VisualStudioVersion", VisualStudioVersion);
     data.AddValue(SpecialNames.VsixAttribute.RootSuffix, RootSuffix);
     data.AddValue(SpecialNames.VsixAttribute.NewIdeInstance, NewIdeInstance);
     data.AddValue(SpecialNames.VsixAttribute.TimeoutSeconds, TimeoutSeconds);
 }
开发者ID:victorgarciaaprea,项目名称:xunit.vsix,代码行数:7,代码来源:VsixTestCase.cs

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: Serialize

        /// <inheritdoc/>
        public virtual void Serialize(IXunitSerializationInfo info)
        {
            info.AddValue("DisplayName", DisplayName);
            info.AddValue("TestAssembly", TestAssembly);
            info.AddValue("UniqueID", UniqueID.ToString());

            if (CollectionDefinition != null)
            {
                info.AddValue("DeclarationAssemblyName", CollectionDefinition.Assembly.Name);
                info.AddValue("DeclarationTypeName", CollectionDefinition.Name);
            }
            else
            {
                info.AddValue("DeclarationAssemblyName", null);
                info.AddValue("DeclarationTypeName", null);
            }
        }
开发者ID:modai888,项目名称:xunit,代码行数:18,代码来源:TestCollection.cs

示例8: Deserialize

 public void Deserialize(IXunitSerializationInfo info)
 {
     IntValue = info.GetValue<int>("IntValue");
     StringValue = info.GetValue<string>("StringValue");
 }
开发者ID:commonsensesoftware,项目名称:xunit,代码行数:5,代码来源:XunitSerializationInfoTests.cs

示例9: Serialize

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

            data.AddValue("Culture", culture);
        }
开发者ID:modai888,项目名称:xunit,代码行数:6,代码来源:CulturedXunitTestCase.cs

示例10: Deserialize

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

            Initialize(data.GetValue<string>("Culture"));
        }
开发者ID:modai888,项目名称:xunit,代码行数:6,代码来源:CulturedXunitTestCase.cs

示例11: Serialize

 public void Serialize(IXunitSerializationInfo info) {
     info.AddValue("testCase", _testCase);
     info.AddValue("suppressDebugFail", _suppressDebugFail);
 }
开发者ID:AlexanderSher,项目名称:RTVS-Old,代码行数:4,代码来源:XunitTestCaseDecoratorBase.cs

示例12: Deserialize

 public void Deserialize(IXunitSerializationInfo info) {
     _testCase = info.GetValue<IXunitTestCase>("testCase");
     _suppressDebugFail = info.GetValue<bool>("suppressDebugFail");
 }
开发者ID:AlexanderSher,项目名称:RTVS-Old,代码行数:4,代码来源:XunitTestCaseDecoratorBase.cs

示例13:

 void IXunitSerializable.Serialize(IXunitSerializationInfo info) {
     info.AddValue(nameof(Expression), Expression);
     info.AddValue(nameof(Length), Length);
     info.AddValue(nameof(NameCount), NameCount);
     info.AddValue(nameof(AttrCount), AttrCount);
     info.AddValue(nameof(SlotCount), SlotCount);
     info.AddValue(nameof(Sorted), Sorted);
     info.AddValue(nameof(Children), Children);
 }
开发者ID:Microsoft,项目名称:RTVS,代码行数:9,代码来源:ValuesTest.cs

示例14: Serialize

 /// <inheritdoc/>
 public void Serialize(IXunitSerializationInfo info)
 {
     info.AddValue("MethodName", Method.Name);
     info.AddValue("TestClass", TestClass);
 }
开发者ID:MichalisN,项目名称:xunit,代码行数:6,代码来源:TestMethod.cs

示例15: Serialize

 public void Serialize(IXunitSerializationInfo info)
 {
     info.AddValue("IntValue", IntValue);
     info.AddValue("StringValue", StringValue);
 }
开发者ID:commonsensesoftware,项目名称:xunit,代码行数:5,代码来源:XunitSerializationInfoTests.cs


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