public void AddKey_Adds_To_Licese_UserData() { var viewModel = new UserDataViewModel(); var license = new License(); viewModel.CurrentLicense = license; viewModel.CurrentKey = "UserKey"; viewModel.CurrentValue = "UserValue"; viewModel.AddKey(); var data = viewModel.CurrentLicense.Data[0]; Assert.Equal("UserKey", data.Key); Assert.Equal("UserValue", data.Value); }