fix tests
This commit is contained in:
@@ -392,7 +392,7 @@ public class AIResponseConstantsTests
|
||||
_ => typeof(object),
|
||||
};
|
||||
|
||||
emptyMarkerType.Should().Be(typeof(string));
|
||||
emptyMarkerType.Should().Be<string>();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user