Skip navigation

Provide parameter values with a custom class member

Provide parameter values with a custom class member: Visual Studio 2015 Essentials 09: Unit Tests
Provide parameter values with a custom class member: Visual Studio 2015 Essentials 09: Unit Tests

Parameters for a parametrized test can be supplied by a class method or property. This tutorial shows how to use the MemberData attribute to designate the class member that contains the test data. See how to use the C# yield keyword in the method to return the data successfully.

Resume Transcript Auto-Scroll
Skill Level Intermediate
2h 42m
Duration
25,161
Views
Show More Show Less
Skills covered in this course
Development Tools Developer Visual Studio

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now