public void GivenConfirmedUsersWhenFindUsersbyUserNameThenThrowNotSupportedException( ProfileAuthenticationOption option) { // arrange var testClass = new BetterProfileProvider(); // act // assert int totalRecords1; Assert.Throws<NotSupportedException>( () => testClass.FindProfilesByUserName(option, "value", 0, 10, out totalRecords1)); }