Base:
7 references to Equals
Microsoft.Extensions.AI.Abstractions.Tests (7)
ChatCompletion\ChatToolModeTests.cs (7)
29Assert.True(ChatToolMode.RequireAny.Equals(ChatToolMode.RequireAny)); 30Assert.False(ChatToolMode.RequireAny.Equals(ChatToolMode.Auto)); 31Assert.False(ChatToolMode.RequireAny.Equals(new RequiredChatToolMode("func"))); 33Assert.True(ChatToolMode.RequireAny.Equals(new RequiredChatToolMode(null))); 37Assert.True(new RequiredChatToolMode("func").Equals(new RequiredChatToolMode("func"))); 40Assert.False(new RequiredChatToolMode("func1").Equals(new RequiredChatToolMode("func2"))); 43Assert.False(new RequiredChatToolMode("func1").Equals(new RequiredChatToolMode("FUNC1")));