private void GetBookSetName(InMemoryBook book, string name) { book = new InMemoryBook(name); }
private void SetName(InMemoryBook book, string name) { book.Name = name; }
private void GetBookSetName(out InMemoryBook book, string name) // Can use ref or out, out assumes that the incomming paramater has not been initialized. { book = new InMemoryBook(name); // Out forces you to initialize the output parameter }
private void GetBookSetName(ref InMemoryBook inMemoryBook, string name) { inMemoryBook = new InMemoryBook(name); }
private void SetName(ref InMemoryBook book, string name) { book = new InMemoryBook(new List <double>(), name); }
private void GetBookSetName(out InMemoryBook book, string name) { book = new InMemoryBook(new List <double>(), name); }
void GetBookSetName(ref InMemoryBook book, string name) { book = new InMemoryBook(name); }
private void GetBookSetNameByRef(ref InMemoryBook book, string bookName) { book = new InMemoryBook(bookName); }
private void GetBookSetNameByReference(ref InMemoryBook book, string newName) { book = new InMemoryBook(newName); }
private void GetBookSetName(InMemoryBook book, string newName) { book = new InMemoryBook(newName); book.Name = newName; // Trying to 'force' for purpose of testing }
private void GetBookSetName(ref InMemoryBook book, string name) { book = new InMemoryBook(name); book.Name = name; }
public void ValidateErrorOfAddGrade() { var book = new InMemoryBook(""); Assert.Throws <ArgumentException>(() => book.AddGrade(105)); }
public void GradesCannotBeMoreThan100() { var book = new InMemoryBook(""); }