本文整理汇总了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);
}
示例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);
}
示例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));
}
示例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);
}
示例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));
}
示例6: Deserialize
public void Deserialize(IXunitSerializationInfo info)
{
testCase = info.GetValue<IXunitTestCase>("InnerTestCase");
}
示例7: Deserialize
public override void Deserialize(IXunitSerializationInfo data)
{
base.Deserialize(data);
this.forceDelimit = data.GetValue<bool>("ForceDelimit");
}
示例8: Deserialize
public void Deserialize(IXunitSerializationInfo info)
{
this.clientName = info.GetValue<string>("clientName");
}
示例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));
}
示例10: Deserialize
/// <inheritdoc/>
public override void Deserialize(IXunitSerializationInfo data)
{
base.Deserialize(data);
ErrorMessage = data.GetValue<string>("ErrorMessage");
}
示例11: Deserialize
public override void Deserialize(IXunitSerializationInfo data)
{
base.Deserialize(data);
this.whiteSpacePreservation = data.GetValue<WhiteSpacePreservation>("WhiteSpacePreservation");
}
示例12: Deserialize
/// <inheritdoc/>
public void Deserialize(IXunitSerializationInfo info)
{
this.timeSpan = TimeSpan.FromTicks(info.GetValue<long>("ticks"));
}
示例13: Deserialize
public override void Deserialize(IXunitSerializationInfo data)
{
base.Deserialize(data);
DisableRetry = data.GetValue<bool>("DisableRetry");
}
示例14: Deserialize
public void Deserialize(IXunitSerializationInfo info)
{
this.Property = info.GetValue<string>("Property");
}
示例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"));
}