You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While attempting to write some unit tests in another project, I came across the need to construct a MetadataInfo object. Unfortunately, its constructor is private and its Create methods are internal.
Ideally, I would like to be able to mock this class like any other "dumb" model. My larger goal here is to mock VideoStream and AudioStream objects that have particular metadata properties, that I can use in unit tests for methods that perform sanity checks against these streams.
I could certainly submit a PR to make the constructor and Create properties more accessible, but I'm not sure that's the best approach here, and was hoping to start some discussion around it.
The text was updated successfully, but these errors were encountered:
While attempting to write some unit tests in another project, I came across the need to construct a
MetadataInfo
object. Unfortunately, its constructor is private and itsCreate
methods are internal.Ideally, I would like to be able to mock this class like any other "dumb" model. My larger goal here is to mock
VideoStream
andAudioStream
objects that have particular metadata properties, that I can use in unit tests for methods that perform sanity checks against these streams.I could certainly submit a PR to make the constructor and Create properties more accessible, but I'm not sure that's the best approach here, and was hoping to start some discussion around it.
The text was updated successfully, but these errors were encountered: