Developer technologies | Visual Studio | Testing
A suite of integrated tools for creating, running, and managing tests to ensure code quality and reliability.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am currently writing the unit tests for a class using the Microsoft.SqlServer.TransactSql.ScriptDom library. I am unable write unit tests for my class as I am unable to set the properties of mocked objects as there is no setter for that property. For example, I cannot set the 'Identifiers' property of the class SchemaObjectName as it does not have a setter.
you would add an api to mocked object to set the value to return.