set tag value to null instead of empty string
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8972d9a66c
commit
ec87e02f29
|
@ -133,7 +133,7 @@ tests:
|
|||
tags:
|
||||
"a": "b"
|
||||
"c": "32"
|
||||
"k": ""
|
||||
"k":
|
||||
"rt": "ql7"
|
||||
|
||||
# with escaped tags
|
||||
|
@ -149,7 +149,7 @@ tests:
|
|||
- input: "@c;h=;a=b :quux ab cd"
|
||||
atoms:
|
||||
tags:
|
||||
"c": ""
|
||||
"c":
|
||||
"h": ""
|
||||
"a": "b"
|
||||
source: "quux"
|
||||
|
@ -213,7 +213,7 @@ tests:
|
|||
atoms:
|
||||
tags:
|
||||
tag1: "value1"
|
||||
tag2: ""
|
||||
tag2:
|
||||
vendor1/tag3: "value2"
|
||||
vendor2/tag4: ""
|
||||
source: "irc.example.com"
|
||||
|
@ -236,9 +236,9 @@ tests:
|
|||
atoms:
|
||||
tags:
|
||||
tag1: "value1"
|
||||
tag2: ""
|
||||
tag2:
|
||||
vendor1/tag3: "value2"
|
||||
vendor2/tag4: ""
|
||||
vendor2/tag4:
|
||||
verb: "COMMAND"
|
||||
params:
|
||||
- "param1"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System.Globalization;
|
||||
using System.IO;
|
||||
using IRCSharp.Tests.Tokenization.Data;
|
||||
using YamlDotNet.Serialization;
|
||||
using YamlDotNet.Serialization.NamingConventions;
|
||||
|
|
|
@ -21,7 +21,7 @@ public class Tokenization
|
|||
public void TagsMissingEqual()
|
||||
{
|
||||
var line = new Line("@id PRIVMSG #channel");
|
||||
Assert.AreEqual(string.Empty, line.Tags["id"]);
|
||||
Assert.IsNull(line.Tags["id"]);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<RepositoryUrl>https://tildegit.org/irctokens/ircsharp/src/branch/main/IRCStates</RepositoryUrl>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageTags>irc</PackageTags>
|
||||
<PackageVersion>1.4.0</PackageVersion>
|
||||
|
|
|
@ -12,19 +12,20 @@
|
|||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<RepositoryUrl>https://tildegit.org/irctokens/ircsharp/src/branch/main/IRCTokens</RepositoryUrl>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageTags>irc</PackageTags>
|
||||
<PackageVersion>1.4.0</PackageVersion>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<DebugType>embedded</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="README.md" Pack="true" PackagePath="\" />
|
||||
<None Include="README.md" Pack="true" PackagePath="\"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.Gitea" Version="8.0.0" PrivateAssets="All"/>
|
||||
<PackageReference Include="Microsoft.SourceLink.Gitea" Version="8.0.0" PrivateAssets="all"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace IRCTokens
|
|||
}
|
||||
else
|
||||
{
|
||||
Tags[part] = string.Empty;
|
||||
Tags[part] = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue