本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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));
}
示例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);
}
示例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));
}
示例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);
}
}
示例8: Deserialize
public void Deserialize(IXunitSerializationInfo info)
{
IntValue = info.GetValue<int>("IntValue");
StringValue = info.GetValue<string>("StringValue");
}
示例9: Serialize
public override void Serialize(IXunitSerializationInfo data)
{
base.Serialize(data);
data.AddValue("Culture", culture);
}
示例10: Deserialize
public override void Deserialize(IXunitSerializationInfo data)
{
base.Deserialize(data);
Initialize(data.GetValue<string>("Culture"));
}
示例11: Serialize
public void Serialize(IXunitSerializationInfo info) {
info.AddValue("testCase", _testCase);
info.AddValue("suppressDebugFail", _suppressDebugFail);
}
示例12: Deserialize
public void Deserialize(IXunitSerializationInfo info) {
_testCase = info.GetValue<IXunitTestCase>("testCase");
_suppressDebugFail = info.GetValue<bool>("suppressDebugFail");
}
示例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);
}
示例14: Serialize
/// <inheritdoc/>
public void Serialize(IXunitSerializationInfo info)
{
info.AddValue("MethodName", Method.Name);
info.AddValue("TestClass", TestClass);
}
示例15: Serialize
public void Serialize(IXunitSerializationInfo info)
{
info.AddValue("IntValue", IntValue);
info.AddValue("StringValue", StringValue);
}