Skip to content

Conversation

Hellothereyoko
Copy link

@Hellothereyoko Hellothereyoko commented Oct 1, 2025

Hellothereyoko and others added 6 commits September 28, 2025 21:48
modified:   PrincessBrideTrivia/PrincessBrideTrivia/Program.cs
modified:   PrincessBrideTrivia/PrincessBrideTrivia/Question.cs
	modified:   PrincessBrideTrivia/PrincessBrideTrivia.Tests/ProgramTests.cs

        fixed unit tests to match new functionality
        updated assertions to use HasCount

	modified:   PrincessBrideTrivia/PrincessBrideTrivia/Program.cs

        fixed CalculateScore to return 0 for no correct answers and double casting
changed LoadQuestion to more easily define the size of question blocks from the text file
@Hellothereyoko Hellothereyoko marked this pull request as ready for review October 1, 2025 01:00
@Hellothereyoko Hellothereyoko marked this pull request as draft October 1, 2025 01:01
@Hellothereyoko Hellothereyoko marked this pull request as ready for review October 1, 2025 01:01
@Hellothereyoko Hellothereyoko changed the title Assignment 1: Nico & Yoko Assignment 1 Oct 1, 2025
Copy link

@ulises-aguilar ulises-aguilar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request title includes "Assignment 1" in the title ✔
Partner has also made a commit ✔
Pull Request targets Assignment 1 branch ✔
Issue 1: Application no longer crashes ✔
Issue 2: Unit test properly passes ✔

Copy link

@ColtonKnopik ColtonKnopik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment Details

  • Pull Request title includes "Assignment 1" in the title ✔
  • Partner has also made a commit ✔
  • Pull Request targets Assignment 1 branch ✔
  • Issue 1: Application no longer crashes ✔
  • Issue 2: Unit test properly passes ✔

Copy link

@BillMillerCoding BillMillerCoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment Details
Pull Request title includes "Assignment 1" in the title ✔
Partner has also made a commit ✔
Pull Request targets Assignment 1 branch ✔
Issue 1: Application no longer crashes ✔
Issue 2: Unit test properly passes ✔

Great job folks!

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses two main issues in a Princess Bride Trivia application as part of Assignment 1. The changes fix a crash in the application and ensure unit tests pass properly.

  • Fixed division by zero error in percentage calculation method
  • Corrected missing assignment of questions to array in LoadQuestions method
  • Updated test file path generation to use proper temporary directory

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
README.md Updated assignment checklist to mark all requirements as completed
Question.cs Added blank line for code formatting
Program.cs Fixed GetPercentCorrect method and LoadQuestions array assignment bug
ProgramTests.cs Fixed file path generation and array initialization syntax

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Merged classmate suggestion
Copy link

github-actions bot commented Oct 3, 2025

Summary

Summary
Generated on: 10/03/2025 - 00:26:45
Coverage date: 10/03/2025 - 00:26:42
Parser: MultiReport (2x Cobertura)
Assemblies: 1
Classes: 2
Files: 2
Line coverage: 58.5% (41 of 70)
Covered lines: 41
Uncovered lines: 29
Coverable lines: 70
Total lines: 107
Branch coverage: 41.6% (5 of 12)
Covered branches: 5
Total branches: 12
Method coverage: Feature is only available for sponsors
Tag: 43_18209214758

Coverage

PrincessBrideTrivia - 58.5%
Name Line Branch
PrincessBrideTrivia 58.5% 41.6%
PrincessBrideTrivia.Program 56.7% 41.6%
PrincessBrideTrivia.Question 100%

Hellothereyoko

This comment was marked as resolved.

@Hellothereyoko
Copy link
Author

@nicoduvekot Waiting for your review

Copy link

@Joshua-Lester3 Joshua-Lester3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment Details

  • Pull Request title includes "Assignment 1" in the title ✔
  • Partner has also made a commit ✔
  • Pull Request targets Assignment 1 branch ✔
  • Issue 1: Application no longer crashes ✔
  • Issue 2: Unit test properly passes ✔

Extra Credit

  • Come up with a new feature for the application
    • Issue 3: Add a new feature request implemented ❌ Not implemented
    • Issue 3: Feature request unit tested ❌ Not implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants