fix tests
Some checks failed
SonarQube / Build and analyze (push) Failing after 1m44s
Unit Tests / Run Tests (push) Failing after 1m7s

This commit is contained in:
Leonid Pershin
2025-10-20 10:39:58 +03:00
parent f4892efbb5
commit 1d0ebfeeb7
10 changed files with 73 additions and 74 deletions

View File

@@ -392,7 +392,7 @@ public class AIResponseConstantsTests
_ => typeof(object),
};
emptyMarkerType.Should().Be(typeof(string));
emptyMarkerType.Should().Be<string>();
}
[Fact]

View File

@@ -345,28 +345,28 @@ public class ChatTypesTests
"private" => typeof(string),
_ => typeof(object),
};
privateType.Should().Be(typeof(string));
privateType.Should().Be<string>();
var groupType = ChatTypes.Group switch
{
"group" => typeof(string),
_ => typeof(object),
};
groupType.Should().Be(typeof(string));
groupType.Should().Be<string>();
var superGroupType = ChatTypes.SuperGroup switch
{
"supergroup" => typeof(string),
_ => typeof(object),
};
superGroupType.Should().Be(typeof(string));
superGroupType.Should().Be<string>();
var channelType = ChatTypes.Channel switch
{
"channel" => typeof(string),
_ => typeof(object),
};
channelType.Should().Be(typeof(string));
channelType.Should().Be<string>();
}
[Fact]