target
treated as a string or serialized.
- Converters are not executed.
- Explicit
Target
s can be passed in.
[Test]
public Task WithTargets() =>
Verify(
new
{
Property = "Value"
},
[
new Target(
extension: "txt",
data: "Raw target value",
name: "targetName")
]);
snippet source | anchor
[Fact]
public Task WithTargets() =>
Verify(
new
{
Property = "Value"
},
[
new(
extension: "txt",
data: "Raw target value",
name: "targetName")
]);
snippet source | anchor
public Task WithTargets() =>
Verify(
new
{
Property = "Value"
},
[
new(
extension: "txt",
data: "Raw target value",
name: "targetName")
]);
snippet source | anchor
[TestMethod]
public Task WithTargets() =>
Verify(
target: new
{
Property = "Value"
},
rawTargets:
[
new(
extension: "txt",
data: "Raw target value",
name: "targetName")
]);
snippet source | anchor
[Test]
public Task WithTargets() =>
Verify(
new
{
Property = "Value"
},
[
new Target(
extension: "txt",
data: "Raw target value",
name: "targetName")
]);
snippet source | anchor
snippet source | anchor
snippet source | anchor