Is there a Assert class present in Selenium C# just like we have in Coded UI test.
Or I should use the Microsoft.VisualStudio.TestTools.UnitTesting.Asser
Yes, you would use the Assert
class in your unit test framework, in your case MSTest.
The Selenium library doesn't have responsibility over test framework type of functions, including asserts
.
You can use FluentAssertions
which supports many different frameworks including MSTest which might minimize changes needed if you need to switch frameworks for any reason.