Skip to content

Add tests Chapter6 - v8 #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 28, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove space from GetName Listing14. Fix Listing20 property, visibility.
- Tests added for 14,17,18,19,20
  • Loading branch information
COsborn2 committed Aug 27, 2019
commit b301ec81c2091515af6cbf58a384d19a22c8cb21
2 changes: 1 addition & 1 deletion src/Chapter06/Listing06.14.DataRetrievalFromAFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Employee

public string GetName()
{
return $"{ FirstName } { LastName }";
return $"{ FirstName } { LastName }";
}

public void SetName(string newFirstName, string newLastName)
Expand Down
4 changes: 2 additions & 2 deletions src/Chapter06/Listing06.20.ProvidingPropertyValidation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter06.Listing06_20
{
class Employee
public class Employee
{
// ...
public void Initialize(
Expand All @@ -17,7 +17,7 @@ public void Initialize(
// LastName property
public string LastName
{
get => _FirstName;
get => _LastName;
set
{
// Validate LastName assignment
Expand Down